Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Mismatch in Linkage Section

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
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

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

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: 4
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Number of parameters in Linkage kregen COBOL Programming 4 Wed Jan 27, 2016 5:13 pm
No new posts Record Extraction Mismatch from Header sri_gans CLIST & REXX 3 Mon Dec 08, 2014 8:23 am
No new posts mismatch between dfsrmm volume and SM... meykh2014 JCL & VSAM 3 Sat Oct 04, 2014 12:06 pm
No new posts XID received and XID sent Mismatch david6789 All Other Mainframe Topics 0 Fri Sep 05, 2014 6:38 pm
No new posts COBOL Parmlist and Associated Linkage... Bill O'Boyle COBOL Programming 10 Fri Dec 20, 2013 9:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us