ABORT Statement: UNIX

Stops executing the current DATA step, SAS job, or SAS session.
Valid in: in a DATA step
UNIX specifics: values of n
See: ABORT Statement in SAS Statements: Reference

Syntax

ABORT <ABEND | RETURN> <n>;

Details

The n option enables you to specify the value of the exit status code that SAS returns to the shell when it stops executing. The value of n can range from 0 to 255. Normally, a return code of 0 is used to indicate that the program ran with no errors, and return codes greater than 0 are used to indicate progressively more serious error conditions. Return codes of 0–6 and those codes that are greater than 977 are reserved for use by SAS.