CLEAR command

The CLEAR command removes the actions of previously entered Debug Tool commands. Some breakpoints are removed automatically when Debug Tool determines that they are no longer meaningful. For example, if you set a breakpoint in a fetched or loaded compile unit, the breakpoint is discarded when the compile unit is released.

Read syntax diagramSkip visual syntax diagram
>>-CLEAR--+-+-AT-----------------+------------------+--;-------><
          | +-AT_command---------+                  |      
          | '-generic_AT_command-'                  |      
          +-DECLARE--+----------------------+-------+      
          |          +-identifier-----------+       |      
          |          |    .-,----------.    |       |      
          |          |    V            |    |       |      
          |          '-(----identifier-+--)-'       |      
          +-EQUATE--+----------------------+--------+      
          |         +-identifier-----------+        |      
          |         |    .-,----------.    |        |      
          |         |    V            |    |        |      
          |         '-(----identifier-+--)-'        |      
          +-LDD--+-*----------------+---------------+      
          |      +-number-----------+               |      
          |      |    .-,------.    |               |      
          |      |    V        |    |               |      
          |      +-(----number-+--)-+               |      
          |      '-ldd_number_range-'               |      
          +-LOAD--+-module_name-----------+---------+      
          |       |    .-,-----------.    |         |      
          |       |    V             |    |         |      
          |       '-(----module_name-+--)-'         |      
          +-LOG-------------------------------------+      
          +-MEMORY----------------------------------+      
          +-MONITOR--+----------------------+-------+      
          |          +-number---------------+       |      
          |          |    .-,------.        |       |      
          |          |    V        |        |       |      
          |          +-(----number-+--)-----+       |      
          |          +-monitor_number_range-+       |      
          |          '-+--------+-----------'       |      
          |            '-CURSOR-'                   |      
          +-ON--+-------------------------+---------+      
          |     +-pli_condition-----------+         |      
          |     |    .-,-------------.    |         |      
          |     |    V               |    |         |      
          |     '-(----pli_condition-+--)-'         |      
          +-PROCEDURE--+--------------------------+-+      
          |            +-procedure_name-----------+ |      
          |            |    .-,--------------.    | |      
          |            |    V                |    | |      
          |            '-(----procedure_name-+--)-' |      
          '-VARIABLES--+----------------------+-----'      
                       +-identifier-----------+            
                       |    .-,----------.    |            
                       |    V            |    |            
                       '-(----identifier-+--)-'            

AT
Removes all breakpoints, including GLOBAL breakpoints, set by previously entered AT commands, except for AT TERMINATION and suspended breakpoints.
AT_command
A valid AT command that includes at least one operand. The AT command must be complete except that the every_clause and command are omitted.
generic_AT_command
A valid AT command without operands. It can be one of the following: ALLOCATE, APPEARANCE, CALL, CHANGE, CURSOR, DATE, DELETE, ENTRY, EXIT, LABEL, LOAD, OFFSET, OCCURRENCE, PATH, STATEMENT (the LINE keyword can be used in place of STATEMENTS), or TERMINATION.
DECLARE
Removes previously defined variables and tags. If no identifier follows DECLARE, all session variables and tags are cleared. DECLARE is equivalent to VARIABLES.
identifier
The name of a session variable or tag declared during the Debug Tool session. This operand must follow the rules for the current programming language.
EQUATE
Removes previously defined symbolic references. If no identifier follows EQUATE, all existing SET EQUATE synonyms are cleared.
identifier
The name of a previously defined reference synonym declared during the Debug Tool session using SET EQUATE. This operand must follow the rules for the current programming language.
LDD
Removes one or more LOADDEBUGDATA (LDD) commands known to Debug Tool. The LDD command's sub-parameter must be one of those listed in the output of the LIST LDD command. It is recommended that you enter the LIST LDD command before each CLEAR LDD command because the LDD entry numbers are affected by previous CLEAR LDD commands. This command has the following sub-parameters:
*
Removes all LDD commands known to Debug Tool across all enclaves.
number
A positive integer that refers to the output of the LIST LDD command. If a list of integers is specified, all commands that are represented by the specified list are cleared.
ldd_number_range
Identifies the first and last number as seen in the LIST LDD command's output, separated by a hyphen (-), that you want to clear. When the current programming language setting is COBOL, blanks are required around the hyphen (-). Blanks are optional for other programming languages. However, in remote debug mode, blanks are required around the hyphen (-) for all programming languages.

Usage note

You can use the CLEAR LDD command in remote debug mode.

LOAD
Removes the load module. This command has the following sub-parameter:
module_name
The name of one or more load modules that were loaded by Debug Tool using the LOAD command.
LOG
Erases the log file and clears out the data being retained for scrolling. In line mode, CLEAR LOG clears only the log file.

If the log file is directed to a SYSOUT type file, CLEAR LOG will not clear the log contents in the file.

MEMORY
Clears the Memory window including the memory currently being displayed, the base address, and the history area.
MONITOR
Clears the commands defined for MONITOR. If no number follows MONITOR, the entire list of commands affecting the monitor window is cleared; the monitor window is empty.
number
A positive integer that refers to a monitored command. If a list of integers is specified, all commands represented by the specified list are cleared.
monitor_number_range
Identifies the first and last monitor number in a range of monitors, separated by a hyphen (-), that you want to delete. When the current programming language setting is COBOL, blanks are required around the hyphen (-). Blanks are optional for other programming languages.
CURSOR
Indicates that you want to delete the variable identified by the cursor’s current location. The cursor can be placed only in the Monitor window.
ON (PL/I)
Removes the effect of an earlier ON command. If no pli_condition follows ON, all existing ON commands are cleared.
pli_condition
Identifies an exception condition for which there is an ON command defined.
PROCEDURE
Clears previously defined Debug Tool procedures. If no procedure_name follows PROCEDURE, all inactive procedures are cleared.
procedure_name
The name given to a sequence of Debug Tool commands delimited by a PROCEDURE command and a corresponding END command. The procedure must be currently in storage and not active.
VARIABLES
Removes previously defined variables and tags. If no identifier follows VARIABLES, all session variables and tags are cleared. VARIABLES is equivalent to DECLARE.
identifier
The name of a session variable or tag declared during the Debug Tool session. This operand must follow the rules for the current programming language.

Usage notes

Examples

Refer to the following topics for more information related to the material discussed in this topic.