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

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


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
Search our Forums:

Back to Top