Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Mismatch in Linkage Section

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
deepumohan

New User


Joined: 16 Apr 2007
Posts: 1
Location: Chennai

PostPosted: Sat Nov 03, 2007 1:46 pm    Post subject: Mismatch in Linkage Section
Reply with quote

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
View user's profile Send private message
References
PostPosted: Sat Nov 03, 2007 1:46 pm    Post subject: Re: Mismatch in Linkage Section Reply with quote

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1142
Location: At my desk

PostPosted: Sat Nov 03, 2007 2:42 pm    Post subject:
Reply with quote

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
View user's profile Send private message
kannanakp
Currently Banned

New User


Joined: 02 Apr 2007
Posts: 3
Location: Chennai

PostPosted: Sat Nov 03, 2007 9:39 pm    Post subject: Reply to: Mismatch in Linkage Section
Reply with quote

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
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7505
Location: 221 B Baker St

PostPosted: Sun Nov 04, 2007 10:30 am    Post subject:
Reply with quote

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
View user's profile Send private message
kannanakp
Currently Banned

New User


Joined: 02 Apr 2007
Posts: 3
Location: Chennai

PostPosted: Sun Nov 04, 2007 10:36 am    Post subject: Reply to: Mismatch in Linkage Section
Reply with quote

Thanks for ur reply Dick.
Even i didn't work on that...
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7505
Location: 221 B Baker St

PostPosted: Sun Nov 04, 2007 10:49 am    Post subject:
Reply with quote

You're welcome icon_smile.gif
Back to top
View user's profile Send private message
sattar_engg
Warnings : 1

New User


Joined: 23 Sep 2006
Posts: 7
Location: SE

PostPosted: Wed Nov 14, 2007 1:36 pm    Post subject: Reply to: Mismatch in Linkage Section
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1