Chapter Contents

Previous

Next
ABORT

ABORT



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


Syntax
Details
See Also

Syntax

ABORT <ABEND | RETURN> <n>;

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
specifies the condition code that is returned to the operating system. This value can range from 0 to 65535.


Details

The ABORT statement causes the SAS System to stop processing the current DATA step.

The ABEND and RETURN options both terminate the SAS process, job, or session. If n is not specified, the Windows batch variable ERRORLEVEL is set.

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.