We can use the MONITOR and REVERSE commands to ‘go back’ to previous steps. First give the MONITOR command and then give the REVERSE command. Now if you press PF9 it will start tracing backwards. If you want to again go forward give REVERSE again.
Some more Information…
The MONITOR and REVERSE commands are used to activate review mode. Review mode enables you to record and then review the execution path by reversing the direction of program execution. Use the MONITOR command before executing your program to record execution. Then use the REVERSE command to review the execution history by tracing through the recorded history in the reverse direction. You can see the execution path and the changing data values as you review program execution. MONITOR records the program's execution in a buffer. The default buffer size is 1M. XPEDITER/TSO wraps and overwrites the existing data when the buffer is filled. Use the SET REVSIZE command to increase or decrease the buffer size. Review mode can be used with OS/VS COBOL, COBOL II, and CA-OPTIMIZER. However, ANSI COBOL 68 is not supported. Review mode is not valid in an unattended batch test.
Usage Notes
1. MONITOR without a module name records history for the current module—not necessarily the active module where execution is located, but the module indicated by the program field on the third header line.
2. Use a list of module names to monitor the execution path that spans multiple called COBOL modules.
3. Use the DELETE command to stop recording the execution history.
4. The REVERSE and RESUME commands are valid only if MONITOR has first been turned on.
5. Issuing a MONITOR ALL command in an initial script or at the beginning of the test session allows you to review the execution of all COBOL statements.
Tuesday, April 10, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment