SAS supplies libraries
of autocall macros to each SAS site. The libraries that you receive
depend on the SAS products licensed at your site. You can use autocall
macros without having to define or include them in your programs.
When SAS is installed,
the autocall libraries are included in the value of the SASAUTOS system
option in the system configuration file. The autocall macros are stored
as individual members, each containing a macro definition. Each member
has the same name as the macro definition that it contains.
Although the macros
available in the autocall libraries supplied by SAS are working utility
programs, you can also use them as models for your own routines. In
addition, you can call them in macros that you write yourself.
To explore these macro
definitions, browse the commented section at the beginning of each
member. See the setting of SAS system option SASAUTOS, to find the
location of the autocall libraries. To view the SASAUTOS value, use
one of the following:
-
the OPTIONS command in the SAS
windowing environment to open the OPTIONS window
-
-
the VERBOSE system option
-
For details about these
options, see “SAS System Options,” in
SAS System Options: Reference.
The following table lists selected autocall
macros.
Selected Autocall Macros
|
|
|
Compresses multiple
blanks and removes leading and trailing blanks. QCMPRES masks the
result so special characters and mnemonic operators are treated as
text instead of being interpreted by the macro facility.
|
|
Compiles macros and
stores them in a catalog in a permanent SAS library.
|
|
Returns the data type
of a value.
|
|
Left-aligns an argument
by removing leading blanks. QLEFT masks the result so special characters
and mnemonic operators are treated as text instead of being interpreted
by the macro facility.
|
|
Returns a value corresponding
to an error condition.
|
|
Trims trailing blanks.
QTRIM masks the result so special characters and mnemonic operators
are treated as text instead of being interpreted by the macro facility.
|
|
Returns the position
of the first character unique to an expression.
|