Chapter Contents

Previous

Next
SAS Component Language: Reference

Using the SAS Macro Interface

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]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.