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 / abhishek_ibm
Both will be having the same value but the only difference
is when we use airthmetic operation then it will take hex
value .. I do think I am correct but kindly correct me if i
am mistaken.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Write a cobol program making use of the redefine clause.
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?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
State the various causes of s0c1, s0c5 and s0c7.
What is an in line perform? When would you use it? Anything else you wish to say about it.
what is the difference between COBOL2 AND COBOL390?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Explain how to differentiate call by context by comparing it to other calls?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Write the code implementing the perform … varying.
What is the difference between goback, stop run and exit program in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What guidelines should be followed to write a structured cobol prgm?
What is the difference between Call and a Link?