ABORT Statement: Windows

Stops executing the current DATA step, SAS job, or SAS session.
Valid in: a DATA step
Windows specifics: Action of the ABEND and RETURN options; maximum value of condition-code
See: ABORT Statement in SAS Statements: Reference

Syntax

ABORT <ABEND | RETURN> <n> ;

Required Arguments

ABEND
causes abnormal termination of the current SAS job or session for the current process. Further action is based on how your operating environment and site treat jobs that end abnormally.
RETURN
causes the immediate normal termination of the current SAS job or session. A condition code is returned indicating an error if a job ends abnormally.
n
enables you to specify a condition code that SAS returns to its calling program. The value of n must be an integer. Return codes 0 - 6 and those values greater than 997 are used by SAS.

Details

The ABORT statement causes SAS to stop processing the current DATA step.
The ABEND and RETURN options both terminate the SAS process, job, or session.