View previous topic :: View next topic
|
Author |
Message |
kanishka
New User
Joined: 02 Apr 2005 Posts: 3
|
|
|
|
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 |
|
|
chani823
New User
Joined: 30 Mar 2005 Posts: 5
|
|
|
|
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 |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
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 |
|
|
kanishka
New User
Joined: 02 Apr 2005 Posts: 3
|
|
|
|
Hi Anu,
It works.Thanks a lot.
Regards,
Kanishka |
|
Back to top |
|
|
prabeesh Currently Banned New User
Joined: 07 Dec 2006 Posts: 9 Location: chennai
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
|