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


Please Help Members By Posting Answers For Below Questions

) How do u handle errors in BMS macro

1497


HOw can I get the negative sign while deduct high value from low value

1779


What the difference is between continue and next sentence?

649


) how do u code after getting data?

1575


Difference between array and sub-script ?

1149






can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1829


How to remove 2 duplicate records and copy only one using job control language?

727


example for sub strings ? and refernce modifications whit output pls

1833


Why did you choose to work with ibm mainframe cobol programming?

621


how do you reference the rrds file formats from cobol programs

783


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

693


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

678


How do u write test cases?

1629


What is Pic 9v99 Indicates in COBOL?

713


What is the difference between a binary search and a sequential search what are the pertinent cobol?

723