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

I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1417


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

1026


what is the use of outrecord?

1972


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

971


What is the use of intialize verb?

982


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

870


What is cobol?

953


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2186


What do you understand by psb and acb?

849


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

852


What is a scope terminator give example?

835


Write down the divisions of cobol program?

852


What is the difference between PIC 9.99 and PIC9v99?

1039


How do we get current date from system with century in COBOL?

1066


What is the difference between structured cobol programming and object alternativelyiented cobol?

998