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 All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts After newcopy the CICS program user f... CICS 7
No new posts Starting a CICS Transaction from a Th... CICS 0
No new posts Problem moving a cobol program into E... COBOL Programming 3
No new posts Passing containers on START command CICS 4
No new posts Error to invoke MPP program through B... IMS DB/DC 4
Search our Forums:


Back to Top