Stops executing the current DATA step, SAS job, or SAS session
| Language element: |
statement
|
| Valid: |
in a DATA step
|
| OpenVMS specifics: |
action of ABEND and RETURN; maximum value of n
|
|
ABORT
<ABEND | RETURN> <n>;
|
Note:
This is a simplified explanation of the ABORT statement syntax. For the
complete explanation, see SAS Language Reference: Dictionary.
-
no argument
-
stops processing the current DATA step. Additional actions and results depend on the method of
operation.
-
ABEND
-
causes abnormal termination of the current SAS job or session. Results depend on the method of
operation.
-
RETURN
-
causes the immediate normal termination of the current SAS job or session. Results depend on the method of
operation.
-
n
-
is an integer value that enables you to specify a condition code that SAS returns to OpenVMS when it stops executing. The value
of n can range from -2,147,483,648 to 2,147,483,647.
If you specify ABORT ABEND, the symbol SAS$STATUS is set to 999. If you specify
ABORT
RETURN, the symbol SAS$STATUS is set to 12. Both the ABEND and
RETURN arguments terminate the SAS job or session.
The value of n can range from -2,147,483,648 to
2,147,483,647.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.