Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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: 2504
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us