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
 
Called programs-Few doubts

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
shalini bhat

New User


Joined: 26 Feb 2007
Posts: 4
Location: India

PostPosted: Mon Mar 19, 2007 8:10 pm    Post subject: Called programs-Few doubts
Reply with quote

Hi,

1)If I am passing 3 parameters to a called program and in the linkage section I have defined only 2 of the variables, what will happen and why ?
2)What happens if elements are not passed in the oder of thier receiving ?
what will the error be ?
3)IF I am passing 2 variables from Prgm A to Prg B which has 3 variables defined in the linkage section , what will happen ?
4)What is the logic behind passing data by value ?

Regards,
Shalini
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: Mon Mar 19, 2007 8:44 pm    Post subject:
Reply with quote

Hello,

For questions 1,2,&3, keep in mind that the address of the parameter is passed - not the actual data (all that is established is addressability). If the calling and called modules do not have the same parameter definition (to use an old IBM phrase), "the results may be unpredictable". You may get anything from incorrect results to an abend (i.e. s0c7).

In question 4, the actual data is presented to the called module in a temporary field (there is no addressability back to the caller's data). Any manipulation to this data will be only for the use of the called module - the data in the calling program will remain unchanged.
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 pointers on using USS and C programs. Pedro All Other Mainframe Topics 0 Wed Oct 04, 2017 4:38 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm

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