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
 

 

How to figure out the calling program?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: How to figure out the calling program?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Apr 16, 2010 5:46 pm    Post subject: Reply to: How to figure out the calling program?
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Apr 16, 2010 6:35 pm    Post subject: Reply to: How to figure out the calling program?
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 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