Question

  Asked: Jul 18 2006   10:41 AM GMT
  Asked by: programming44


passing variables..................


Mainframe, 390, DB2, zSeries



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

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on DataCenter and Database.

Looking for relevant DataCenter Whitepapers? Visit the SearchDataCenter.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register