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
 

 

Seeing the execution of a called module using Xpeditor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
kanishka

New User


Joined: 02 Apr 2005
Posts: 3

PostPosted: Mon Apr 04, 2005 9:03 pm    Post subject: Seeing the execution of a called module using Xpeditor
Reply with quote

Hi,

While testing a Program using xpeditor , when ever a CALL statement to a subroutine is encountered , is there any way to see the flow of the called program ?

Thanks and Regards,
Kanishka
Back to top
View user's profile Send private message

chani823

New User


Joined: 30 Mar 2005
Posts: 5

PostPosted: Tue Apr 05, 2005 10:52 am    Post subject:
Reply with quote

Hi Kanishka,

Yes, you can Trap a called program also. In the option 1.6 of Xpeditor make the entries as given below, and make a break point in both calling program and called program.

CMD USERID NETNAME TERM TRAN PROGRAM TRAP ABEND
...................... TRAP CONDITION .....................
--------------------------------------------------------------------
_ ******* ******** **** **** ******** YES

Another option could be making following entry in the option 1.6 with break point in both programs

CMD USERID NETNAME TERM TRAN PROGRAM TRAP ABEND
...................... TRAP CONDITION .....................
--------------------------------------------------------------------
_ ******** ******** **** **** ABCD YES
_ ******** ******** **** **** WXYZ YES

where ABCD is calling program and WXYZ is called program.
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Mon Apr 11, 2005 10:09 pm    Post subject:
Reply with quote

Quote:
While testing a Program using xpeditor , when ever a CALL statement to a subroutine is encountered , is there any way to see the flow of the called program ?



Hi Kanishka,

We can go thru the flow of called program thru this way also. When the control is at call statement just say "source pgmname" in the command prompt. But dont forget to keep break point after call statement in the calling program.

Suppose the code is so:

Code:
move 'PGMA' to ww-000-pgm.
call ww-000-pgm using wh-010-data.
move ret-code to wh-100-rc.


In the above code when the control comes to call statement just say 'source PGMA' in the command prompt and also dont forget to keep the break point in the last move statement. By giving source command, PGMA will be expanded. Now you can keep break point in PGMA and can view the flow.

Hope this helps..
Back to top
View user's profile Send private message
kanishka

New User


Joined: 02 Apr 2005
Posts: 3

PostPosted: Tue Apr 12, 2005 11:19 pm    Post subject:
Reply with quote

Hi Anu,

It works.Thanks a lot.

Regards,
Kanishka
Back to top
View user's profile Send private message
prabeesh
Currently Banned

New User


Joined: 07 Dec 2006
Posts: 9
Location: chennai

PostPosted: Tue Jan 02, 2007 10:23 am    Post subject: Re: Seeing the execution of a called module using Xpeditor
Reply with quote

when execution reached on the call statement then put 'INT module name' in command line two times . then you can go through the flow of called program.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Fri Jan 05, 2007 6:31 pm    Post subject:
Reply with quote

Hi !

Just a little hint.

Difference between Source and int is, that int automatically sets a breakpoint at the beginning of the programm.

You could use them at any time in your trace. Perhaps a pgm calls 3 other
programms, then you could allocate all these three others with source or int at the beginning of your trace.

Regards, UmeySan
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 -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
This topic is locked: you cannot edit posts or make replies. How to supply called sub-program from... dchristensen JCL & VSAM 25 Wed Sep 14, 2016 11:36 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am


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