|
|
| Author |
Message |
deepumohan
New User
Joined: 16 Apr 2007 Posts: 1 Location: Chennai
|
|
|
|
| You have a main program that calls a sub program. There is a parm structure say containing 10 items that gets passed on from main program to sub program. If the main program parm has 10 items, but the sub program Linkage structure has only 9 items (Mismatch in the linkage structure) , then what happens? |
|
| Back to top |
|
 |
References
|
Posted: Sat Nov 03, 2007 1:46 pm Post subject: Re: Mismatch in Linkage Section |
 |
|
|
 |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 1142 Location: At my desk
|
|
|
|
If by 10 items you mean call sub using item1 ... item10, then the 10th item does not get touched by the sub.
If by 10 items you mean call sub using area-with-10-fields, then the 10th field does not get touched by the sub. |
|
| Back to top |
|
 |
kannanakp Currently Banned New User
Joined: 02 Apr 2007 Posts: 3 Location: Chennai
|
|
|
|
Can you please explain this scenario.
Call pgm using var-1,var-2,var-2.
Suppose the called program linkage section has 3 different variables. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7505 Location: 221 B Baker St
|
|
|
|
Hello,
Is this
| Quote: |
| Call pgm using var-1,var-2,var-2. |
a typo?
| Quote: |
| Suppose the called program linkage section has 3 different variables |
To quote IBM - "the result may be unpredictable".
It might run or it might abend. If it did run, it may or may not have done what you wanted. |
|
| Back to top |
|
 |
kannanakp Currently Banned New User
Joined: 02 Apr 2007 Posts: 3 Location: Chennai
|
|
|
|
Thanks for ur reply Dick.
Even i didn't work on that... |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7505 Location: 221 B Baker St
|
|
|
|
You're welcome  |
|
| Back to top |
|
 |
sattar_engg Warnings : 1 New User
Joined: 23 Sep 2006 Posts: 7 Location: SE
|
|
|
|
Hi i have some thing to add.
If the calling program has 3 variables but called program linkage has 4 variables then you abend when you acess the 4 th variable in calledd program.
\
abdul sattar |
|
| Back to top |
|
 |
|
|