While you are viewing your source listing (either before execution or during a breakpoint), set unconditional breakpoints directly in your program code, or indirectly from the Procedure Names and Cross‑Reference sections of the output.
To set an unconditional breakpoint from a Source Listing or Breakpoint screen, follow these steps:
A breakpoint set at a paragraph name or label occurs before execution of the first verb or instruction in the paragraph.
If you used Option # 12 to set Breakpoint Options, the Breakpoint Locations Menu appears. Using this menu specify your options for the breakpoint. Complete the menu. For details, see n later in this chapter. After completing this menu, press Enter to set the breakpoint and return to the Source Listing display or breakpoint.
The following sample screen shows how to set unconditional breakpoints.
CA InterTest ‑ PROTSYM FILE SOURCE LISTING BREAKPOINT COMMAND ===> Program= COBDEMO Option # Stmt # Margin= 01 Search= OPTS 1 Proc div 2 Work-stor 3 Link sect 4 D-map 5 Clst/Pmap More: + 6 Data xref 7 Proc xref 8 Err msgs 9 Srch fwd 10 Srch bwd PFKS 1 Help 2 3 Det Bkpt 4 Profile 5 Resume 6 Menu 7 Backward 8 Forward 9 10 001 Verb 11 Backtrace 12 Status ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ _ 01205 PERFORM CICS‑LOOP 50 TIMES. _ 01206 GO TO MXS‑OPTION. u 01207 CICS‑LOOP. 01208*EXEC CICS ASKTIME 01209* END‑EXEC. _ 01210 MOVE ' 00849 ' TO DFHEIV0 u 01211 CALL 'DFHEI1' USING DFHEIV0. 01212 u 01213 MXS‑OPTION. _ 01214 IF TASK‑SWITCH3 EQUAL SPACE _ 01215 MOVE 'A' TO TASK‑SWITCH3 _ 01216 MOVE 'DMAP06' TO MAPNAME _ 01217 GO TO SEND‑REWRITE‑RETURN. 01218*EXEC CICS HANDLE CONDITION 01219* NOSTG(NO‑STORAGE)
Note: If you want to recompile your program and keep the same breakpoints in the recompiled version, set breakpoints next to paragraph names or labels, not lines of executable code. Then, use the CA InterTest for CICS New Program Copy function, explained in the chapter "Monitoring Menu Options," to transfer the breakpoints to the same paragraph names or labels in the recompiled program. If you set breakpoints at lines of executable code, New Program Copy transfers the breakpoints to the same statement numbers or offsets in the recompiled program, which might not be what you want.
If you compiled or assembled your program with the post‑processor parameter value, LISTER=ALL, you can set unconditional breakpoints using the Cross‑Reference section. This method sets breakpoints at all references to the selected data name. To use this method, follow these steps:
To set breakpoints at specific paragraph names, labels, or procedure names, follow these steps:
The following screen shows how to set breakpoints at Procedure Names.
CA InterTest ‑ PROTSYM FILE SOURCE LISTING DISPLAY COMMAND ===> Program= COBDEMO Option # Stmt # Margin= 01 Search= OPTS 1 Proc div 2 Work-stor 3 Link sect 4 D-map 5 Clst/Pmap More: + 6 Data xref 7 Proc xref 8 Err msgs 9 Srch fwd 10 Srch bwd PFKS 1 Help 2 3 End 4 Profile 5 Monitor 6 Menu 7 Backward 8 Forward 9 10 11 12 Status ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ _ PROCEDURE NAMES DEFN REFERENCE u AFTER‑REWRITE 01328 _ CICS‑LOOP 01207 01205 _ CONTINUE‑TASK 00895 00824 00888 _ DATA‑NAME 01080 u DO‑READ‑VAR 01099 01096 _ EXPANDED‑DEMO 00971 00821 00892 00893 _ GEN‑ERR 01289 00802 00854 01047 _ LAST‑SCREEN 00954 00947 _ LINK‑COBDEML 01381 01372 u LOOP‑RTN 01204 _ MOVE‑RECORD 01148 _ MXR‑OPTION 01199 01372
To set breakpoints at all paragraph names, labels, or procedure names, follow these steps:
|
Copyright © 2012 CA.
All rights reserved.
|
|