For more information about these options, see “SAS System Options,” in SAS System
Options: Reference.
The following table lists selected autocall macros.
Table 12.13 Selected Autocall Macros
Macro Description
CMPRES and QCMPRES Compresses multiple blanks and removes leading and trailing
blanks. QCMPRES masks the result so that special characters and
mnemonic operators are treated as text instead of being
interpreted by the macro facility.
COMPSTOR Compiles macros and stores them in a catalog in a permanent
SAS library.
DATATYP Returns the data type of a value.
LEFT and QLEFT Left-aligns an argument by removing leading blanks. QLEFT
masks the result so that special characters and mnemonic
operators are treated as text instead of being interpreted by the
macro facility.
SYSRC Returns a value corresponding to an error condition.
TRIM and QTRIM Trims trailing blanks. QTRIM masks the result so that special
characters and mnemonic operators are treated as text instead of
being interpreted by the macro facility.
VERIFY Returns the position of the first character unique to an expression.
Required System Options for Autocall Macros
To use autocall macros, you must set two SAS system options:
MAUTOSOURCE
activates the autocall facility. NOMAUTOSOURCE disables the autocall facility.
SASAUTOS=library-specification | (library-specification-1..., library-specification-n)
specifies the autocall library or libraries. For more information, see the SAS
companion for your operating system.
If your site has installed the autocall libraries supplied by SAS and uses the standard
configuration of SAS software supplied by SAS, you need only to ensure that the SAS
system option MAUTOSOURCE is in effect to begin using the autocall macros.
Although the MAUTOLOCDISPLAY system option is not required, it displays the
source location of the autocall macros in the SAS log when the autocall macro is
invoked. For more information, see “MAUTOLOCDISPLAY System Option” on page
357.
172 Chapter 12 • Macro Language Elements