01 var1 pic x(10)
01 var2 redefines var1 pic 9(10).
then in procedure division
move 'abcde' to var1 then waht is the value of var1 and var2
Answer Posted / jaganmohanreddy
var1 will be abcde
var2 will be 0000000000
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
How do get the result of your program directly on your pc?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How can you get the ksds file records into your cobol program?
What is Pic 9v99 Indicates in COBOL?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
how do you reference the esds vsam file formats from cobol programs
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What are all the divisions of a COBOL program?
What are the various section in data division and briefly explain them.
How are the next sentence and continue different from each other?
Define cobol?
What is the difference between comp and comp-3 usage?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
How many bytes S(8) comp field occupy and its maximum value?