Previous Page | Next Page

Automatic Macro Variables

SYSRC Automatic Macro Variable



Contains the last return code generated by your operating system.
Type: Automatic macro variable (read and write)

Details

Details

The code returned by SYSRC is based on commands you execute using the X statement in open code, the X command in a windowing environment, or the %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.

Previous Page | Next Page | Top of Page