Details
You can use SYSDAY to check the current day before executing code that you want to
run on certain days of the week, provided you initialized your SAS session today.
Example: Identifying the Day When a SAS Session
Started
The following statement identifies the day and date on which a SAS session started
running.
%put This SAS session started running on: &sysday, &sysdate9.;
When this statement executes on Wednesday, December 19, 2007 for a SAS session that
began executing on Monday, December 17, 2007, the following line is written to the
SAS log:
This SAS session started running on: Monday, 17DEC2007
SYSDEVIC Automatic Macro Variable
Contains the name of the current graphics device.
Type: Automatic macro variable (read and write)
See: “Automatic Macro Variables in UNIX Environments” in SAS Companion for UNIX
Environments
“Automatic Macro Variables” in SAS Companion for Windows
“Macro Variables” in SAS Companion for z/OS
Details
The current graphics device is the one specified at invocation of SAS. You can specify
the graphics device on the command line in response to a prompt when you use a
product that uses SAS/GRAPH. You can also specify the graphics device in a
configuration file. The name of the current graphics device is also the value of the SAS
system option DEVICE=.
For more information, see the SAS documentation for your operating environment.
Note: The macro processor always stores the value of SYSDEVIC in unquoted form. To
quote the resolved value of SYSDEVIC, use the %SUPERQ macro quoting function.
Comparisons
Assigning a value to SYSDEVIC is the same as specifying a value for the DEVICE=
system option.
SYSDMG Automatic Macro Variable
Contains a return code that reflects an action taken on a damaged data set.
Type: Automatic macro variable (read and write)
SYSDMG Automatic Macro Variable 205