0 pts.
 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

Software/Hardware used:
ASKED: July 18, 2006  10:41 AM
UPDATED: July 20, 2006  4:47 AM

Answer Wiki:
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 Wiki Answer Submitted:  July 20, 2006  4:47 am  by  Fskovacs   0 pts.
All Answer Wiki Contributors:  Fskovacs   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _