View previous topic :: View next topic
|
Author |
Message |
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3049 Location: NYC,USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What do the CICS manuals tell you, particularly in regard to scenario 2 (which is explicitly discussed in them)? |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3049 Location: NYC,USA
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Speak to your CICS Sysprog and/or Tech Services personnel about IBM transaction CETR.
Mr. Bill |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3049 Location: NYC,USA
|
|
|
|
@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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3049 Location: NYC,USA
|
|
|
|
@Bill,Robert: True, Thank you!! |
|
Back to top |
|
|
|