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 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: 1827
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: 8201
Location: Dubuque, Iowa, USA

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: 1827
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: 2504
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: 8201
Location: Dubuque, Iowa, USA

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: 1827
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: 8201
Location: Dubuque, Iowa, USA

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: 2504
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: 1827
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 The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm

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