Using Automatic Macro Variables
Overview
SAS creates
and defines several automatic macro variables for you. Automatic macro
variables contain information about your computing environment, such
as the date and time of the session, and the version of SAS that you
are running. These automatic macro variables
-
are created when SAS is invoked
-
are global (always available)
-
are usually assigned values by SAS
-
can be assigned values by the user in some cases.
Some automatic macro variables have fixed values that
are set when SAS is invoked.
Name
|
Value
|
---|---|
SYSDATE
|
the date of the SAS
invocation (DATE7.)
|
SYSDATE9
|
the date of the SAS
invocation (DATE9.)
|
SYSDAY
|
the day of the week
of the SAS invocation
|
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.