What's New in the SAS 9.3 Macro Language Facility


The Macro Language Facility has the following enhancements:
  • new automatic macro variables that enable you to reduce the amount of text that is needed to perform common tasks
  • new macro functions
  • new macro statements
  • new macro system options that enable you to define and redefine macros and to better control their execution

Automatic Macro Variables

contains the number of bits of an address.
contains an indication of the byte order of the current session. The possible values are LITTLE or BIG.
contains the number of observations read from the last data set that was closed by the previous procedure or DATA step.
displays the value of the ODS ESCAPECHAR= from within the program.
contains the length in bytes of a long integer in the current session.
contains the size in bytes of a pointer.
contains the length in bytes of a Unicode character in the current session.

Macro Functions

indicates whether a macro is currently executing.
indicates whether there is a macro definition in the WORK.SASMACR catalog.
returns the depth of nesting from the point of call.
returns the name of the macro executing at a nesting level.

Macro Statements

closes stored compiled macros and clears the SASMSTORE= library.
deletes a macro definition from the WORK.SASMACR catalog.

Macro System Options

displays in the SAS log the source location of the autocall macros when the autocall macro is compiled.
specifies whether the macro processor prepends the full pathname of the autocall source file to the description field of the catalog entry of compiled auto call macro definition in the WORK.SASMACR catalog.
enables the generation of coverage analysis data.
specifies the location of the coverage analysis data file.