Macro statements

From sasCommunity
Jump to: navigation, search
This is a work in progress. You can contribute to this article.

Macro statements are usually used to write SAS code. Macro statements are interpreted by the macro processor as a SAS program is being parsed at compile time. The text that is generated (resolved) by the macro statements can then be interpreted as SAS code and run by the SAS compiler.

Macro statements

  •  %ABORT macro statement
  •  %* macro comment statement
  •  %COPY macro statement
  •  %DISPLAY macro statement
  • %DO macro statement
    •  %DO, iterative macro statement
    •  %DO %UNTIL macro statement
    •  %DO %WHILE macro statement
  •  %END macro statement
  •  %GLOBAL macro statement
  •  %GOTO macro statement
  •  %IF-%THEN/%ELSE macro statement
  •  %INPUT macro statement
  •  %label macro statement
  • %LET macro statement
  •  %LOCAL macro statement
  •  %MACRO macro statement
  •  %MEND macro statement
  • %PUT macro statement
  •  %RETURN macro statement
  •  %SYMDEL macro statement
  •  %SYSCALL macro statement
  •  %SYSEXEC macro statement
  •  %SYSLPUT macro statement
  •  %SYSMACDELETE macro statement
  •  %SYSMSTORECLEAR macro statement
  •  %SYSRPUT macro statement
  •  %WINDOW macro statement

See also

References

Macro Statements 
SAS support Reference documentation by version: 9.2, 9.3, 9.4