BEGIN command
BEGIN and END delimit a sequence
of one or more commands to form one longer command. The BEGIN and END keywords
cannot be abbreviated.
- command
- A valid z/OS® Debugger command.
Usage notes
- The
BEGINcommand is most helpful when used inATorPROCEDUREcommands. - The
BEGINcommand is helpful when you use it as a programming language neutral command. For example, if you create a commands file that might be used by an application created with several different programming languages, theBEGINcommand works for all supported programming languages. - For Enterprise PL/I,
the
BEGINcommand is helpful when used inIForONcommands. - The
BEGINcommand does not imply a new block or name scope. It is equivalent to a PL/I simpleDO. - You
cannot use the
BEGINcommand while you replay recorded statements by using thePLAYBACKcommands.
Examples
- Set a breakpoint at statement 320 listing the value of variable
xand assigning the value of 2 to variablea.AT 320 BEGIN; LIST (x); a = 2; END; - When the PL/I condition
FIXEDOVERFLOWis raised (that is, when the length of the result of a fixed-point arithmetic operation exceeds the maximum length allowed) list the value of variablexand assign the value of 2 to variablea. The current programming language setting is PL/I.ON FIXEDOVERFLOW BEGIN; LIST (x); a=2; END;
