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

Caller program from Callee program


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kaustubhkhole

New User


Joined: 20 Oct 2008
Posts: 19
Location: Hyderabad

PostPosted: Tue May 12, 2009 5:12 pm
Reply with quote

Hi All
Is there any way by which I can find the caller program name from the Callee program

For E.g.
If program A is calling program B.
Is there by any chance I can know the program which is calling B . Keeping a break point at B ?

I hope I am clear
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue May 12, 2009 5:26 pm
Reply with quote

Should we assume Xpediter since you're in the Compuware forum -- even though you didn't tell us little details like the tool, the language of the calling program, the language of the called program, and what you've already tried that hasn't worked? Have you tried Xpediter option 2.6.1? The Xpediter COBOL User's Guide talks about returning to the calling program -- read chapters 5.1 and 5.3 for more details.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue May 12, 2009 5:38 pm
Reply with quote

there is also the simple fact that if pgm b has been CALLed,
how did the TS/OP invoke this CALL?
Back to top
View user's profile Send private message
kaustubhkhole

New User


Joined: 20 Oct 2008
Posts: 19
Location: Hyderabad

PostPosted: Tue May 12, 2009 5:57 pm
Reply with quote

I am Sorry for missing out on details..

You are correct .. I am using Xpediter to debug programs .. Both programs are in Cobol .. Forther it's an online program
It would be great if you could give me the link of COBOL User's Guide (Xpediter option 2.6.1)

The problem is that I am able to figure out that the control is going to B ..when I set a break point the flow halts at program B ... But I need to find which program is calling B ..
Back to top
View user's profile Send private message
Sam Davies

New User


Joined: 25 Jun 2009
Posts: 6
Location: UK

PostPosted: Tue Jun 30, 2009 8:07 pm
Reply with quote

Hi,

So your are using Xpediter/CICS. Once you have stopped at a breakpoint you want to identify the calling program.

I would suggest you activate Xpediter's Trace function - this is option 1.4 from the primary menu.

Then set your breakpoint in the called program.

Then clear the screen and run your test. Once you stop at your breakpoint, look at the trace output - this is option 2.4 from the primary menu. This will give you a statement trace across all programs that were executed. Here you should see the calling program. NOTE: The trace will only record programs and statements for programs are available in the DDIO file. If you don't have a compile listing for a program, it will NOT appear in the trace.

Cheers.

Sam
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 30, 2009 8:28 pm
Reply with quote

Sam Davies wrote:
NOTE: The trace will only record programs and statements for programs are available in the DDIO file. If you don't have a compile listing for a program, it will NOT appear in the trace.


this is probably the most important part of the post.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 30, 2009 10:24 pm
Reply with quote

Hello,

Quote:
It would be great if you could give me the link of COBOL User's Guide (Xpediter option 2.6.1)
If your organization is licensed to use the product, you can download it from Compuware Support:
frontline.compuware.com/
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 Jul 01, 2009 2:30 am
Reply with quote

I'm assuming you are accessing the sub-program via a CALL USING from the CALLER and NOT an EXEC CICS LINK?

Sometimes these terms are used synonymously and just wanted make sure.

Regards,
Back to top
View user's profile Send private message
kaustubhkhole

New User


Joined: 20 Oct 2008
Posts: 19
Location: Hyderabad

PostPosted: Wed Jul 22, 2009 3:29 pm
Reply with quote

Sam Davies wrote:
Hi,

So your are using Xpediter/CICS. Once you have stopped at a breakpoint you want to identify the calling program.

I would suggest you activate Xpediter's Trace function - this is option 1.4 from the primary menu.

Then set your breakpoint in the called program.

Then clear the screen and run your test. Once you stop at your breakpoint, look at the trace output - this is option 2.4 from the primary menu. This will give you a statement trace across all programs that were executed. Here you should see the calling program. NOTE: The trace will only record programs and statements for programs are available in the DDIO file. If you don't have a compile listing for a program, it will NOT appear in the trace.

Cheers.

Sam


Hi Sam ... Could you please advice us on activating the Trace function
Thank you.
Back to top
View user's profile Send private message
mprobst

New User


Joined: 14 Oct 2006
Posts: 14
Location: Appleton Wi USA

PostPosted: Tue Aug 25, 2009 2:21 am
Reply with quote

SET TRACE ON will turn program tracing on.

Using option 0.1 you can see what is all set.

Also, it is NOT TRUE that you need a DDIO listing available for the programs to show up in the trace. Without the DDIO, you will not see the lines of code executed along the way, but you will still see the names of the programs that were executed.
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
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
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top