O'Reilly logo

SAS Certification Prep Guide, 4th Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required