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 / s.v.venkata sivaprasad

redefines will reuse the memory with irrespective of date
type var1 is abcde and var2 also abcde.

Is This Answer Correct ?    22 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to print 10 to 1 if the input have only 10 digit number?

802


What is static and dynamic call in cobol?

586


What is the default value(s) for an initialize and what keyword allows for an override of the default?

682


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

664


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

663






What are 77 levels used for?

648


A table has two indexes defined. Which one will be used by the SEARCH?

746


how to refer the data field?

1793


Difference between cobol and cobol-ii?

697


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

729


how do you reference the rrds file formats from cobol programs

785


Write a cobol program making use of the redefine clause.

719


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

704


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

701


What is comp-1 and comp-2?

754