IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Mismatch in Linkage Section


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Sat Nov 03, 2007 2:42 pm
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
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

Moderator Emeritus


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

PostPosted: Sun Nov 04, 2007 10:30 am
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
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

Moderator Emeritus


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

PostPosted: Sun Nov 04, 2007 10:49 am
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: 5
Location: SE

PostPosted: Wed Nov 14, 2007 1:36 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts FD Section to Create FB or Vb File Dy... COBOL Programming 1
No new posts OPTLINK linkage convention PL/I & Assembler 3
No new posts Sections: need one appearance of cer... DFSORT/ICETOOL 4
Search our Forums:

Back to Top