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

How to trace the path of a particular program?


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

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Wed Feb 22, 2012 5:52 pm
Reply with quote

One scenario1 :
PROG A LINK PROG B LINK PROG C......LINK PROG H
Now is there any way of getting it know the path of PROGH from which all program it is coming??
Is OMEGAMON toll has this facility, if yes then how to make a use??

Scenario 2:

PROG A XCTL PROG B LINK PROG C XCTL PROG D.
If I issue a RETURN in PROG D where would be my controld is going, will it go to CICS back or to PROG C??
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Feb 22, 2012 5:57 pm
Reply with quote

What do the CICS manuals tell you, particularly in regard to scenario 2 (which is explicitly discussed in them)?
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Wed Feb 22, 2012 6:26 pm
Reply with quote

Regarding scenario 2 it says, when we do XCTL then control will be completly passed to the called program, but what about the program B it will still be waiting for PROG C to get control back is it?
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: Wed Feb 22, 2012 6:26 pm
Reply with quote

Speak to your CICS Sysprog and/or Tech Services personnel about IBM transaction CETR.

Mr. Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Feb 22, 2012 10:39 pm
Reply with quote

Quote:
Regarding scenario 2 it says, when we do XCTL then control will be completly passed to the called program, but what about the program B it will still be waiting for PROG C to get control back is it?
Find the CICS Application Programming Guide manual (hint: there's a link to Manuals at the top of this page) and read section 1.3.4.1 Flow of control between programs and subprograms where you will find the answers to your questions (you may also want to read 3.5.1.1 on Application program logical levels first).

If these manuals don't clarify, perhaps you need to actually write some code and try it to see what happens -- you'll learn more by doing it yourself than having people just give you answers.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Wed Feb 22, 2012 11:19 pm
Reply with quote

@Robert: Yes, I got it from the manual, so for scenario 2 the control will get pass to PROG B. Thank you

Any other suggestions for sceario 1??
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Feb 23, 2012 12:22 am
Reply with quote

I haven't used Omegamon in a long time, so while I'm sure (if your site has the CICS option) that you could trace the call sequence with Omegamon, I have no idea how that would be done.

And unless you use a run-time tool, there's no way to know the calling sequence since something like
Code:
MOVE 'PROGRAMH' TO CPROG.
EXEC CICS LINK PROGRAM(CPROG)
...
is perfectly valid, so only at run-time can the actual calling sequence be known.
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: Thu Feb 23, 2012 3:55 am
Reply with quote

CEDF is another option to follow the logic path, although it's considered by some to be "Old School" and can be somewhat lengthy, it does the job and has been for 35+ years....

Mr. Bill
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Thu Feb 23, 2012 4:03 pm
Reply with quote

@Bill,Robert: True, Thank you!!
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 How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts SET PATH in View DDL DB2 2
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top