passing variables………………
0 pts.
0
Q:
passing variables..................


hello,

i am calling 3 variables A,B,C by issuinng CALL A,B,C.in the called programme i have by mistake coded procedure division using C,A,B.
how will the actual and formal variables get attached,i mean what values would be passed to the main programme.

thanx a lot
ASKED: Jul 18 2006  10:41 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
0 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
What will happen is that the data at the address of A in the calling program will be mapped by the data description of C in the LINKAGE SECTION, the data at the address of B will be mapped to the A description and the data at C will be mapped to the B description. On the flip side, changes made to fields defined in linkage will modify data in the calling program the same way.

Rather than worry about it, just change the called program to lne up with the calling program.
Last Answered: Jul 20 2006  4:47 AM GMT by fskovacs   0 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0