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


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?

1410


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2286


How do you reference the fixed block file formats from cobol programs

912


What are the different data types in cobol?

1044


how do you reference the ksds vsam file formats from cobol programs

872


what are decleratives in cobol?

1999


What rules are to be followed while using the corresponding options?

830


Name some of the examples of COBOl 11?

2880


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?

936


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

865


How do define dynamic array in cobol.

857


Explain what you understand by passing by value.

910


What is Pic 9v99 Indicates in COBOL?

932


How do you define a variable of comp-1 and comp-2?

912


In COBOL, what is the different between index and subscript?

945