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
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?
A table has two indexes defined. Which one will be used by the SEARCH?
what is the use of outrecord?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the use of intialize verb?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is cobol?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What do you understand by psb and acb?
Why did you choose to work with ibm mainframe cobol programming?
What is a scope terminator give example?
Write down the divisions of cobol program?
What is the difference between PIC 9.99 and PIC9v99?
How do we get current date from system with century in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol?