passing variables………………

0 pts.
Tags:
390
DB2
Mainframe
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
ASKED: July 18, 2006  10:41 AM
UPDATED: July 20, 2006  4:47 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following