You are on page 1of 2

Automatic Macro Variables

1) SYSBUFFR:- unmatched text from %INPUT


-------------------------------------------------------------------------------------------------------------------------------
2) SYSCC:- the current condition code that SAS returns to your operating environment (the
operating environment condition code)
-------------------------------------------------------------------------------------------------------------------------------
3) SYSCMD :- last unrecognized command from the command line of a macro window
-------------------------------------------------------------------------------------------------------------------------------
4) SYSDEVIC :- name of current graphics device
------------------------------------------------------------------------------------------------------------------------------
5) SYSDMG:- return code that reflects an action taken on a damaged data set
------------------------------------------------------------------------------------------------------------------------------
6) SYSDSN :- name of most recent SAS data set in two fields
------------------------------------------------------------------------------------------------------------------------------
7) SYSFILRC:- return code set by the FILENAME statement
------------------------------------------------------------------------------------------------------------------------------
8) SYSLAST :- name of most recent SAS data set in one field
------------------------------------------------------------------------------------------------------------------------------
9) SYSLCKRC:- return code set by the LOCK statement
------------------------------------------------------------------------------------------------------------------------------
10) SYSLIBRC:- return code set by the LIBNAME statement
------------------------------------------------------------------------------------------------------------------------------
11) SYSLOGAPPLNAME:- value of the LOGAPPLNAME option
------------------------------------------------------------------------------------------------------------------------------
12) SYSMSG :- message for display in macro window
------------------------------------------------------------------------------------------------------------------------------
13) SYSPARM :-value specified with the SYSPARM= system option
------------------------------------------------------------------------------------------------------------------------------
14) SYSPBUFF:- text of macro parameter values
------------------------------------------------------------------------------------------------------------------------------
15) SYSRC:- various system-related return codes
------------------------------------------------------------------------------------------------------------------------------
16) SYSCHARWIDTH :- the character width value
-----------------------------------------------------------------------------------------------------------------------------
17) SYSDATE:- the character value representing the date a SAS job or session began executing (two-
digit year)
------------------------------------------------------------------------------------------------------------------------------
18) SYSDATE9:- the character value representing the date a SAS job or session began executing
(four-digit year)
------------------------------------------------------------------------------------------------------------------------------
19) SYSDAY :- day of week SAS job or session began executing
------------------------------------------------------------------------------------------------------------------------------
20) SYSENCODING:- name of the SAS session encoding
------------------------------------------------------------------------------------------------------------------------------
21) SYSENV:- foreground or background indicator
------------------------------------------------------------------------------------------------------------------------------
22) SYSERR :- return code set by SAS procedures and the DATA step
------------------------------------------------------------------------------------------------------------------------------

1
23) SYSERRORTEXT:- text of the last error message formatted for display on the SAS log
------------------------------------------------------------------------------------------------------------------------------
24) SYSHOSTNAME:- host name of the operating environment
------------------------------------------------------------------------------------------------------------------------------
25) SYSINDEX :-number of macros that have begun execution during this session
------------------------------------------------------------------------------------------------------------------------------
26) SYSINFO :- return code information
------------------------------------------------------------------------------------------------------------------------------
27) SYSJOBID :- name of current batch job or user ID (varies by host environment)
------------------------------------------------------------------------------------------------------------------------------
28) SYSMACRONAME:- name of current executing macro
------------------------------------------------------------------------------------------------------------------------------
29) SYSMENV:- current macro execution environment
------------------------------------------------------------------------------------------------------------------------------
30) SYSNCPU:- the current number of processors that SAS might use in computation
------------------------------------------------------------------------------------------------------------------------------
31) SYSODSPATH:- the value of the PATH variable in the Output Delivery System (ODS).
------------------------------------------------------------------------------------------------------------------------------
32) SYSPROCESSID:- the process ID of the current SAS process
------------------------------------------------------------------------------------------------------------------------------
33) SYSPROCESSNAME:- the process name of the current SAS process
------------------------------------------------------------------------------------------------------------------------------
34) SYSPROCNAME:- name of current procedure being processed
------------------------------------------------------------------------------------------------------------------------------
35) SYSSCP:- the abbreviation of an operating system
------------------------------------------------------------------------------------------------------------------------------
36) SYSSCPL:- the name of an operating system
------------------------------------------------------------------------------------------------------------------------------
37) SYSSITE :- the number assigned to your site
------------------------------------------------------------------------------------------------------------------------------
38) SYSSTARTID:- the id generated from the last STARTSAS statement
------------------------------------------------------------------------------------------------------------------------------
39) SYSSTARTNAME:- the process name generated from the last STARTSAS statement
------------------------------------------------------------------------------------------------------------------------------
40) SYSTCPIPHOSTNAME:- host names of the local and remote operating environments when
multiple TCP/IP stacks are supported
------------------------------------------------------------------------------------------------------------------------------
41) SYSTIME :- the character value of the time a SAS job or session began executing
------------------------------------------------------------------------------------------------------------------------------
42) SYSUSERID:- the user ID or login of the current SAS process
-----------------------------------------------------------------------------------------------------------------------------
43) SYSVER :- release or version number of SAS software executing
------------------------------------------------------------------------------------------------------------------------------
44) SYSVLONG:- release number and maintenance level of SAS software with a 2-digit year
------------------------------------------------------------------------------------------------------------------------------
45) SYSVLONG4:- release number and maintenance level of SAS software with a 4-digit year
------------------------------------------------------------------------------------------------------------------------------
46) SYSWARNINGTEXT:- text of the last warning message formatted for display on the SAS log.
------------------------------------------------------------------------------------------------------------------------------

automatic macro variables

You might also like