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 trace the path of a particular program?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Wed Feb 22, 2012 5:52 pm    Post subject: How to trace the path of a particular program?
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: 7904
Location: Bellevue, IA

PostPosted: Wed Feb 22, 2012 5:57 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Wed Feb 22, 2012 6:26 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Feb 22, 2012 6:26 pm    Post subject: Reply to: How to trace the path of a particular program?
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: 7904
Location: Bellevue, IA

PostPosted: Wed Feb 22, 2012 10:39 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Wed Feb 22, 2012 11:19 pm    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Thu Feb 23, 2012 12:22 am    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Feb 23, 2012 3:55 am    Post subject: Reply to: How to trace the path of a particular program?
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

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Thu Feb 23, 2012 4:03 pm    Post subject:
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    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 What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm
No new posts Need points to tune IMS Checkpoint Pr... satish.ms10 IMS DB/DC 2 Fri Sep 30, 2016 4:12 pm
No new posts ISPF program to set SCRNAME prino TSO/ISPF 5 Fri Sep 30, 2016 2:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us