View previous topic :: View next topic
|
Author |
Message |
akshathan
New User
Joined: 18 Aug 2006 Posts: 45
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
are you using a script? |
|
Back to top |
|
|
akshathan
New User
Joined: 18 Aug 2006 Posts: 45
|
|
|
|
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 |
|
|
rajesh1183
New User
Joined: 07 Jan 2008 Posts: 98 Location: Hyderabad
|
|
|
|
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 |
|
|
akshathan
New User
Joined: 18 Aug 2006 Posts: 45
|
|
|
|
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 |
|
|
gopinaras
New User
Joined: 13 Jan 2010 Posts: 4 Location: Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
maybe this will help you |
After three years, I suspect probably not. |
|
Back to top |
|
|
|