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

XPEDITER Command


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

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Mon Apr 14, 2008 3:13 pm
Reply with quote

I want to examine the logic of the subprogram through
BEFORE module-name. command.

I know other commands like INTERCEPT,SOURCE. But in the PDF they have mentioned that command BEFORE module-name.(Period at the end is needed to specify module level break point) can also be used for the same purpose. But if I'm trying out the same, the flow is not going inside the subprogram.

Kindly tell me whether it can be used for the same functionality Or NOT.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Apr 14, 2008 3:30 pm
Reply with quote

are you using a script?
Back to top
View user's profile Send private message
akshathan

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Mon Apr 14, 2008 3:46 pm
Reply with quote

Hi,
I am not using a script.I am typing the command BEFORE Program-name.
in the primary command area.

Regards
Akshatha
Back to top
View user's profile Send private message
rajesh1183

New User


Joined: 07 Jan 2008
Posts: 98
Location: Hyderabad

PostPosted: Mon Apr 14, 2008 4:58 pm
Reply with quote

Suppose program A is as follows:
Code:
Code:
IDENTIFICATION DIVISIOON.
PROGRAM-ID. A
----
---
PROCEDURE DIVISION.
---
---
MOVE X to Y.
MOVE 'B' TO WW-000-PGM
CALL WW-000-PGM USING ----,---
EVALUATE WH-000-RTRN-CDE
WHEN WS-000-SUCCESS
---
GO BACK.
Now if you are expediting Program A and you need to see the flow of program B even. Then once u reach the CALL statement in expeditor type SOURCE B in the command prompt. Then Keep a break point at the procedure division of B and continue your expediting.

But if you need to comeback to A again, then before going to B keep a break point after the call statement..and then say source B.

A and B should be available in the loadlib.
Back to top
View user's profile Send private message
akshathan

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Mon Apr 14, 2008 7:42 pm
Reply with quote

Hi Rajesh,
I know how to go with SOURCE command but BEFORE subprogram-name. is another command that can be used to achieve the same functionality(As stated in the manual placed in ibmmainframes.com).
My concern is if i am typing the same command i am not able to getinto the subprogram,instead its working as a normal break point.

If you know the usage of BREAK command for examining the process flow of sub program let me know.
Back to top
View user's profile Send private message
gopinaras

New User


Joined: 13 Jan 2010
Posts: 4
Location: Chennai

PostPosted: Wed Apr 20, 2011 10:34 pm
Reply with quote

maybe this will help you

Over type the SUB-PROGRAM name at "PROGRAM: SAMPMAIN" i.e put SAMPSUB and press enter. THere you see the Sub program source listing.. go ahead and debug.

Code:
COMMAND ===>                                                  SCROLL ===> CSR 
PROGRAM: SAMPMAIN   MODULE: SAMPMAIN COMP DATE:  04/20/2011 COMP TIME:12:46:41
                                               ----+----1                     
000008   01 WS-TEST                         >  4422481960                     
         ** END **                                                             
                                                                               
                                                                               
------   -------------------------------------- Before SAMPMAIN:14/AMODE 24 <>
000009 B  PROCEDURE DIVISION.                                              0008
000010    PARA-ONE.                                                        0008
000011         DISPLAY 'MAIN PGM BEFORE C:' WS-TEST                        0008
000012         CALL 'SAMPSUB' USING WS-TEST                                0008
000013         DISPLAY 'AFTER CALL TO SUB PGM'                             0008
=====>         DISPLAY 'SHOW WS-TEST:' WS-TEST                             0008
000015 A       STOP RUN.                                                   0010
****************************** BOTTOM OF MODULE *******************************
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Apr 20, 2011 10:47 pm
Reply with quote

Quote:
maybe this will help you
After three years, I suspect probably not.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top