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 / ashok
in x1 & x2 is haveing same value "abcd" and also memory
location also is same. thats why if u chang any values of
these atomatically chang both values.
Is This Answer Correct ? | 2 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?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
How do you reference the fixed block file formats from cobol programs
What are the different data types in cobol?
how do you reference the ksds vsam file formats from cobol programs
what are decleratives in cobol?
What rules are to be followed while using the corresponding options?
Name some of the examples of COBOl 11?
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?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How do define dynamic array in cobol.
Explain what you understand by passing by value.
What is Pic 9v99 Indicates in COBOL?
How do you define a variable of comp-1 and comp-2?
In COBOL, what is the different between index and subscript?