Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

passing x(10) from program A to a program B which has x(8)

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

New User


Joined: 19 Feb 2005
Posts: 5
Location: chennai

PostPosted: Sat Mar 05, 2005 8:06 pm    Post subject: passing x(10) from program A to a program B which has x(8)
Reply with quote

passing x(10) from program a to a program b which has x ( 8 ), will it get abend and if so what abend will u get
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Mar 06, 2005 12:00 am    Post subject:
Reply with quote

I would say no.

When data is "passed" from one pgm to another the data isn't moved to the receiving pgm. The address of the data is provided to the CALLed pgm and this address is used as a base address for the overlay used in the CALLed pgm LINKAGE SECTION. And because of this the CALLed pgm is only "accessing" the data defined by the datanames in its LS.

The only downside is that the CALLed pgm can't access the last 2 bytes of the CALLing pgm's data.
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us