The AT command defines a breakpoint or a set of breakpoints. By defining breakpoints, you can temporarily suspend program execution and use z/OS® Debugger to perform other tasks. By specifying an AT-condition in the AT command, you instruct z/OS Debugger when to gain control. You can also specify in the AT command what action z/OS Debugger should take when the AT-condition occurs.
A breakpoint for the specified AT-condition remains established until either another AT command establishes a new action for the same AT-condition or a CLEAR command removes the established breakpoint. An informational message is issued when the first case occurs. Some breakpoints might become obsolete during a debug session and will be cleared automatically by z/OS Debugger.
For MVS batch, TSO, and CICS® programs, the SET SAVE and SET RESTORE commands can be used to automatically save and restore breakpoints between z/OS Debugger sessions. For all other programs, the SET SAVE and RESTORE commands can be used to automatically save and manually restore breakpoints between sessions.
For CICS only: If you do not use the SET SAVE and SET RESTORE commands to control the saving and restoring of breakpoints or monitor specifications and you use a DTCN profile to start a full-screen mode debugging session, z/OS Debugger preserves the following breakpoints for that session until the DTCN profile is deleted:
If a deferred AT ENTRY breakpoint has not been encountered, it is not saved nor restored.
For optimized COBOL programs: The order in which breakpoints are encountered in optimized programs is generally the same as in unoptimized programs. There might be differences due to the effects of optimization.
The following table summarizes the forms of the AT command.
| AT ALLOCATE (PL/I) command | Gives z/OS Debugger control when storage for a named controlled variable or aggregate is dynamically allocated by PL/I. |
| AT APPEARANCE command | Gives z/OS Debugger control:
|
| AT CALL command | Gives z/OS Debugger control on an attempt to call the specified entry point. |
| AT CHANGE command (full screen mode, line mode, batch mode) | Gives z/OS Debugger control when either the specified variable value or storage location is changed. |
| AT CHANGE command (remote debug mode) | Gives z/OS Debugger control when the specified variable value is changed. |
| AT CURSOR command (full-screen mode) | Defines a statement breakpoint by cursor pointing. |
| AT DATE command (COBOL) | For COBOL, gives z/OS Debugger control for each date processing statement within the specified block. |
| AT DELETE command | Gives z/OS Debugger control when a load module is deleted. |
| AT ENTRY command or AT ENTRY command (remote debug mode) | Defines a breakpoint at the specified entry point. |
| AT EXIT command | Defines a breakpoint at the specified exit point. |
| AT GLOBAL command | Gives z/OS Debugger control for every instance of the specified AT-condition. |
| AT LABEL command | Gives z/OS Debugger control at the specified statement label. |
| AT LINE command | Gives z/OS Debugger control at the specified line. |
| AT LOAD command or AT LOAD command (remote debug mode) | Gives z/OS Debugger control when the specified load module is loaded. |
| AT OCCURRENCE command | Gives z/OS Debugger control on a language or Language Environment® condition or exception. |
| AT OFFSET command (disassembly) | Gives z/OS Debugger control at the specified offset in the disassembly view. |
| AT PATH command | Gives z/OS Debugger control at a path point. |
| AT Prefix command (full-screen mode) | Defines a statement breakpoint through the Source window prefix area. |
| AT STATEMENT command or AT STATEMENT command (remote debug mode) | Gives z/OS Debugger control at the specified statement. |
| AT TERMINATION command | Gives z/OS Debugger control when the application program is terminated. |
Usage notes
AT ENTRY *;
or
AT GLOBAL ENTRY;
Refer to the following topics for more information related to the material discussed in this topic.