Macro Syntax
|
Purpose
|
---|---|
%LOWCASE(argument)
|
converts letters in
its argument from uppercase to lowercase
|
%QLOWCASE(argument)
|
converts letters in
its argument from uppercase to lowercase, and returns a result that
masks special characters and mnemonic operators
|
%LEFT(argument)
|
removes leading blanks
from the argument
|
%TRIM(argument)
|
removes trailing blanks
from the argument
|
%CMPRES(argument)
|
removes multiple blanks
from the argument
|
%DATATYP(argument)
|
returns the string NUMERIC
or CHAR, depending on whether the argument is an integer or a character
string
|
%macro lowcase(string); %******************************************************; %* *; %* MACRO: LOWCASE *; %* *; %* USAGE: 1) %lowcase(argument) *; %* *; %* DESCRIPTION: *; %* This macro returns the argument passed to *; %* it unchanged except that all upper-case *; %* alphabetic characters are changed to their *; %* lower-case equivalents. *; %* *; %* E.g.: %let macvar=%lowcase(SAS Institute Inc.); *; %* The variable macvar gets the value *; %* "sas institute inc." *; %* NOTES: *; %* Although the argument to the %UPCASE macro *; %* function may contain commas, the argument to *; %* %LOWCASE may not, unless they are quoted. *; %* Because %LOWCASE is a macro, not a function, *; %* it interprets a comma as the end of a parameter. *; %******************************************************; %sysfunc(lowcase(%nrbquote(&string))) %mend;
Syntax, MAUTOSOURCE
system option:
OPTIONS MAUTOSOURCE | NOMAUTOSOURCE;
MAUTOSOURCE
is the default setting,
and specifies that the autocall facility is available.
NOMAUTOSOURCE
specifies that the
autocall facility is not available.
|
Syntax, SASAUTOS= system
option:
OPTIONS SASAUTOS=library-1;
OPTIONS SASAUTOS=(library-1,...,library-n);
the values of library-1 through library-n
are references to source
libraries that contain macro definitions. To specify a source library:
|
C:Mysasfiles
.
You also want to make sure that the default autocall library (which
the fileref Sasautos points to) is still available to the autocall
facility. You would submit the following code:
options mautosource sasautos=('c:mysasfiles',sasautos); %prtlast
%put %sysfunc(getoption(sasautos)); %put %sysfunc(pathname(sasautos));