Previous Page | Next Page

The SCL Debugger

Using SAS Macros with the SCL Debugger

The SCL debugger has a complete interface with the SAS macro facility. You can display macros with the MACEXPAND command. In addition, you can define a macro in the debugger session to replace a debugger command list that you use frequently, as in this example:

DEBUG> %macro ckvars; e var1 var2 %mend ckvars;

After the macro CKVARS is defined, you can invoke the macro as follows:

DEBUG> %ckvars

The macro CKVARS expands to

e var1 var2

Note:   To display the definition of a macro with the CALC command, you must enclose the macro name in quotes:

calc "%ckvars"

  [cautionend]

Previous Page | Next Page | Top of Page