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

Seeing the execution of a called module using Xpeditor


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
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
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
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
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
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
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: 771
Location: Germany

PostPosted: Fri Jan 05, 2007 6:31 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
No new posts Intertest Batch issue with called ass... COBOL Programming 4
No new posts SXP Tool for PL1 or Module library ma... PL/I & Assembler 0
No new posts Parallel Sysplex - subprogram execution CICS 7
Search our Forums:

Back to Top