Type: Automatic macro variable (read only)
See: “SYSVER Automatic Macro Variable” on page 232 and “SYSVLONG Automatic
Macro Variable” on page 233
Comparisons
SYSVLONG4 provides a four-digit year and the release number and maintenance level
of SAS software. SYSVLONG does not contain the four-digit year but everything else is
the same.
Example: Using SYSVLONG4 Automatic Macro Variable
The following statement displays information that identifies the SAS release being used.
%put I am using maintenance release: &sysvlong4;
Submitting this statement (for a user of SAS 9.4) writes this comment to the SAS log:
I am using maintenance release: 9.04.01M4D09082016
Submitting this statement (for a user of SAS Viya) writes this comment to the SAS log:
I am using maintenance release: V.03.01M0P08292016
SYSWARNINGTEXT Automatic Macro Variable
Contains the text of the last warning message formatted for display in the SAS log.
Type: Automatic macro variable (read only)
Details
The value of SYSWARNINGTEXT is the text of the last warning message generated in
the SAS log. For a list of SYSERR warnings and errors, see “SYSERR Automatic
Macro Variable” on page 208.
Note: If the last warning message text that was generated contains an & or % and you are
using the %PUT statement, you must use the %SUPERQ macro quoting function to
mask the special characters to prevent further resolution of the value. The following
example uses the %PUT statement and the %SUPERQ macro quoting function:
%put %superq(syswarningtext);
For more information, see “%SUPERQ Function” on page 277.
Example: Using SYSWARNINGTEXT
This example creates a warning message:
data NULL;
set doesnotexist;
run;
%put &syswarningtext;
234 Chapter 14 • Automatic Macro Variables