Automatic Macro Variables Listed Alphabetically

Name
Syntax and Description
Contains the number of bits of an address.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the current condition code that SAS returns to your operating environment (the operating-environment condition code).
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the character width value.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Indicates the current running phase of the DATA step.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the date on which a SAS job or session began executing.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the date on which a SAS job or session began executing.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the day of the week on which a SAS job or session began executing.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the name of the current graphics device.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains a return code that reflects an action taken on a damaged data set.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the libref and name of the most recently created SAS data set.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the name of the Compute Server session encoding.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains an indication of the byte order of the current session. The possible values are LITTLE or BIG.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Reports whether SAS is running interactively.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains a return code status set by some SAS procedures and the DATA step.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the text of the last error message formatted for display in the SAS log.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the return code from the last FILENAME statement.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the operating environment information that is displayed when the HOSTINFOLONG option is specified.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the host name of the computer that is running the SAS process.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the device type of the current %INCLUDE file.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the directory where the current %INCLUDE file was found.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the fileref that is associated with the current %INCLUDE file or blank.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the filename of the current %INCLUDE file.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the number of macros that have started execution in the current SAS job or session.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains return codes provided by some SAS procedures.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Lists the process identification number (PID) of the process that is executing SAS.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the name of the SAS data file created most recently.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the return code from the most recent LOCK statement.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the return code from the last LIBNAME statement.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the value of the LOGAPPLNAME= system option.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Returns the name of the currently executing macro.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Returns the maximum long integer value allowed under Linux, which is 9,007,199,254,740,992.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the invocation status of the macro that is currently executing.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the current number of processors available to SAS for computations.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the number of observations that exist in the last data set that was closed by the previous procedure or DATA step.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Displays the value of the ODS ESCAPECHAR= from within the program.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Determines whether SAS ODS Graphics is enabled or disabled.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the current Output Delivery System (ODS) pathname.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains a character string that can be passed from the operating environment to SAS program steps.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains text supplied as macro parameter values.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the path of the LIST file set by the PRINTTO procedure for future redirection.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the path of the LOG file set by the PRINTTO procedure for future redirection.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the process ID of the current SAS process.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the name of the Compute Server run mode or server type.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the process name of the current SAS process.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the name of the procedure (or DATASTEP for DATA steps) currently being processed by the SAS Language Processor.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the abbreviation for your processor architecture.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the name of the specific Linux environment that you are using.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the number assigned to your site.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the length in bytes of a long integer in the current session.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the size in bytes of a pointer.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the length in bytes of a Unicode character in the current session.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the ID generated from the last STARTSAS statement (experimental).
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the process name generated from the last STARTSAS statement (experimental).
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the host names of the local and remote computers when multiple TCP/IP stacks are supported.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the time at which a SAS job or session began executing.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the time zone name based on TIMEZONE option.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the time zone ID based on the TIMEZONE= system option.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the current time zone offset based on TIMEZONE option.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the user ID or login of the current SAS process.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the release number of SAS software that is running.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the release number and maintenance level of SAS software that is running.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the release number and maintenance level of SAS software that is running and has a four-digit year.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Contains the text of the last warning message formatted for display in the SAS log.
Product: Base SAS
Document: SAS Macro Language Reference for SAS Viya Workbench
Last updated: June 5, 2026