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
 
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: 757
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 ROSCOE RPF execution via JCL balimanja CA Products 2 Tue Nov 07, 2017 2:13 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am

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