%SYSEXEC, %TSO, or %CMS macro statements. Return codes are integers. The
default value of SYSRC is 0.
You can use SYSRC to check the return code of a system command before you continue
with a job. For return code examples, see the SAS companion for your operating
environment.
SYSSCP and SYSSCPL Automatic Macro Variables
Contain an identifier for your operating environment.
Type: Automatic macro variable (read only)
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
SYSSCP and SYSSCPL resolve to an abbreviation of the name of your operating
environment. In some cases, SYSSCPL provides a more specific value than SYSSCP.
You could use SYSSCP and SYSSCPL to check the operating environment to execute
appropriate system commands.
The following table lists some of the values for SYSSCP and SYSSCPL. If your
operating environment is not listed, refer to your host companion documentation.
Table 14.10 SYSSCP and SYSSCPL Values for Platforms Running SAS 9.2 or Later
Platform SYSSCP Value SYSSCPL Value
z/OS OS z/OS
VMI or OpenVMS on
Itanium - supported for SAS
Foundation only
VMS ITAN OpenVMS
UNIX
HP-UX PA-RISC or H64 HP 64 HP-UX
H61 or HP-UX IPF or HP-
UX on Itanium
HP IPF HP-UX
LAX or LINUX on X64
(x86-64)
LIN X64 LINUX or Linux
LNX or LINUX or LINUX
32-bit (x86)
LINUX LINUX or Linux
R64 or AIX64 or AIX on
POWER
AIX 64 AIX
224 Chapter 14 • Automatic Macro Variables