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

How to figure out the calling program?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
go4salu

New User


Joined: 12 Jan 2006
Posts: 11

PostPosted: Fri Apr 16, 2010 5:16 pm
Reply with quote

Hi,
Can anybody please let me know how to find out the calling CICS program for a particular CICS program apart from 3.14 search?

Thanks in advance.
Shail
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Apr 16, 2010 5:46 pm
Reply with quote

if You explain better the requirement somebody will be glad to provide more info

as a general point ...
for dynamica calls You might have to chase the control blocks ( with more or less success )
( it will not work for CICS links/xctl )

for static calls the best way will be the ISPF members parts list
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Apr 16, 2010 6:35 pm
Reply with quote

If program 'B' had been accessed via a LINK-API from program 'A', then issue an ASSIGN INVOKINGPROG API in program 'B' and it will return the name of program 'A'.

Note: The returned INVOKINGPROG API value will be valid ONLY in a LINK-API (not sure about XCTL-API) access, as described above. If program 'B' had been CALLED (not LINKed-To) by program 'A', then the INVOKINGPROG returned value will be incorrect.

Bill
Back to top
View user's profile Send private message
valyk

Active User


Joined: 16 Apr 2008
Posts: 104
Location: South Carolina

PostPosted: Fri Apr 16, 2010 7:34 pm
Reply with quote

Could you not do like enrico described and chain through your task PG block and read each program that has been used in your task?
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top