AT GLOBAL command
Gives z/OS® Debugger control
for every instance of the specified AT-condition.
These breakpoints are independent of their nonglobal counterparts
(except for AT PATH, which is identical to AT
GLOBAL PATH). Global breakpoints are always performed before
their specific counterparts.
- command
- A valid z/OS Debugger command.
You should use GLOBAL breakpoints where you don't have specific
information of where to set your breakpoint. For example, you want
to halt at entry to block Abcdefg_Unknwn but cannot
remember the name, you can issue AT GLOBAL ENTRY and z/OS Debugger will
halt every time a block is being entered. If you want to halt at
every function call, you can issue AT GLOBAL CALL.
- z/OS Debugger does
not support the
AT CALL,AT LABELandAT PATHcommands for disassembled or VS COBOL II programs. - z/OS Debugger does
not support the
AT CALLcommand for LangX COBOL programs. - To set a global breakpoint, you can specify an asterisk (*) with
the
ATcommand or you can specify anAT GLOBALcommand. - Although you can define
GLOBALbreakpoints to coexist with singular breakpoints of the same type at the same location or event, COBOL does not allow you to define two or more single breakpoints of the same type for the same location or event. The last breakpoint you define replaces any previous breakpoint. - The
AT GLOBALcommand cannot be used while you replay recorded statements by using thePLAYBACKcommands. - The
AT GLOBAL OCCURRENCEbreakpoint takes precedence over anAT OCCURRENCE conditionbreakpoint. - The
AT GLOBAL OCCURRENCEcommand takes precedence over the test_level setting of the TEST runtime option. For example, if your test_level setting is ALL, a condition is raised, and you set anAT GLOBAL OCCURRENCEbreakpoint, then z/OS Debugger stops only for the breakpoint. z/OS Debugger does not stop twice (once for theAT GLOBAL OCCURRENCEand once for the test_level setting of ALL). - You cannot use the
AT GLOBAL ENTRY,AT GLOBAL EXIT, andAT GLOBAL PATHcommands to stop at the entry or exit of a nested block in a C or C++ program. A nested block is a group of statements delimited by { and }. The compiler assigns a name to these blocks using the following pattern: %BLOCKn, where n is a sequentially-assigned number.
- If you want to set a global
AT ENTRYbreakpoint, specify:AT ENTRY *; or AT GLOBAL ENTRY; - At every statement or line, display a message identifying the
statement or line. The current programming language setting is COBOL.
AT GLOBAL STATEMENT LIST ('At Statement:', %STATEMENT); - If you enter (for COBOL):
then enter:AT EXIT table1 PERFORM LIST TITLED (age, pay); GO; END-PERFORM;
onlyAT EXIT table1 PERFORM LIST TITLED (benefits, scale); GO; END-PERFORM;benefitsandscaleare listed when your program reaches the exit point of blocktable1. The secondAT EXITreplaces the first because the breakpoints are defined for the same location. However, if you define the followingGLOBALbreakpoint with the firstEXITbreakpoint, when your program reaches the exit fromtable1, all four variables (age,pay,benefits, andscale) are listed with their values, because theGLOBAL EXITbreakpoint can coexist with theEXITbreakpoint set fortable1:AT GLOBAL EXIT PERFORM LIST TITLED (benefits, scale); GO; END-PERFORM; - To set a GLOBAL DATE breakpoint, specify:
orAT DATE *;AT GLOBAL DATE; - To combine a global breakpoint with other z/OS Debugger commands,
specify:
AT GLOBAL DATE QUERY LOCATION;
Refer to the following topics for more information related to the material discussed in this topic.
- Related references
- every_clause syntax
- PLAYBACK commands
