You can create a
customized debugging command by defining a macro on the DEBUGGER LOG
command line. Then invoke the macro from the command line. For example,
to examine the variable COST, to execute five statements, and then
to examine the variable DURATION, define the following macro (in this
case the macro is called EC). Note that the example uses the alias
for the EXAMINE command.
%macro ec; ex cost; step 5; ex duration; %mend ec;
To issue the commands,
invoke macro EC from the DEBUGGER LOG command line:
%ec
The DEBUGGER LOG displays
the value of COST, executes the next five statements, and then displays
the value of DURATION.
Note: Defining a macro on the DEBUGGER
LOG command line enables you to use the macro only during the current
debugging session, because the macro is not permanently stored. To
create a permanently stored macro, use the Program Editor.