How to save Breakpoints in CA InterTest/Batch?
search cancel

How to save Breakpoints in CA InterTest/Batch?

book

Article ID: 116316

calendar_today

Updated On:

Products

InterTest - CICS InterTest - Batch

Issue/Introduction

How can I save Breakpoints in CA InterTest/Batch and use it in another session or by another user?

Environment

Release:
Component: INTBAT

Resolution

You can save breakpoints in an INT1CLIB library and recall them by using the INCLUDE command.
In order to use it you have to allocate the INT1CLIB DD. It's recommended to do this in your CA InterTest/Batch CLIST. For example:
...
  ALLOC  DD(INT1CLIB)  DSN('your.INTBAT.INT1CLIB')      SHR   
...
 
Now you can add a member with the required command. Member name I01 is being used in the following example and a UBP will be added at statement 20 as follows:
...
EDIT       your.INTBAT.INT1CLIB(I01) - 01.02                      Columns 00001 00080
Command ===>                                                          Scroll ===> CSR
****** ********************************* Top of Data **********************************
000001 AT 20 .U                                                                        
****** ******************************** Bottom of Data ********************************
...
You can add more statements here, of course.
 
Now, at the initial intercept when monitoring your program, you can just type "inc i01" and all statements from the I01 member will be included:
...
CBLS02   ---------- CA-InterTest Batch *INITIAL* Intercept -------------------
COMMAND ===> inc i01                                          SCROLL ===> CUR
TRACE=> 000019                                                                
      000018       *-----------------------------------------------------------
 *--> 000019            DISPLAY 'START SUBPROGRAM CBLS02'             UPON SYSO
 *--> 000020            ACCEPT WS-TIMESUB FROM TIME                           
      000021                                                                   
...
 

After pressing enter:
...
CBLS02   ---------- CA-InterTest Batch *INITIAL* Intercept ----- BREAKPOINT SET
COMMAND ===>                                                  SCROLL ===> CUR
TRACE=> 000019                                                                 
      000018       *-----------------------------------------------------------
 *--> 000019            DISPLAY 'START SUBPROGRAM CBLS02'             UPON SYSO
U*--> 000020            ACCEPT WS-TIMESUB FROM TIME                            
      000021                                                                  
...

Additional Information

See:
https://docops.ca.com/ca-intertest-and-ca-symdump/11-0/en/using-batch-tools/batch-debugging/debugging-commands/control-commands#ControlCommands-INCLUDECommand(ExecuteApplicationCommands)
and
https://docops.ca.com/ca-intertest-and-ca-symdump/11-0/en/getting-started/ca-intertest-batch-demo-sessions/advanced-demo-session/advanced-demo-preliminaries#AdvancedDemoPreliminaries-INT1CLIB