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

Passing PCB address between programs


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nbalajibe
Warnings : 1

New User


Joined: 28 Nov 2006
Posts: 75
Location: India

PostPosted: Thu Nov 29, 2007 3:06 am
Reply with quote

Hi,

There is a program A calling program B. In program B, PCB addresses are found using AIB call. How can we pass this address to program A.

Requirement:
Program B is called many times from A, inorder to avoid using AIB call every time has been decided to pass it back to A and retain the address.
We coded the variable in the using section of A and linkage section of B but the value gets initialized when the control returns to A.
Back to top
View user's profile Send private message
nbalajibe
Warnings : 1

New User


Joined: 28 Nov 2006
Posts: 75
Location: India

PostPosted: Fri Feb 22, 2008 4:49 pm
Reply with quote

Hi,

I have sorted out the issue by moving the AIB logic to Program A.

The updates from my teammates are as follows,

    When program A is calling program B we pass the address of the variables in the using section, so changing the values in that address would be visible in program A too. But after a AIB call we store the address in the variable, we cannot pass a address back to the calling program, hence these variables would not have any values in program A.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Passing SYSPRINT to Invoked Program PL/I & Assembler 9
No new posts Finding Assembler programs PL/I & Assembler 5
Search our Forums:

Back to Top