Previous Page | Next Page

Statements under OpenVMS

ABORT Statement: OpenVMS



Stops executing the current DATA step, SAS job, or SAS session.
Valid: in a DATA step
OpenVMS specifics: action of ABEND and RETURN; maximum value of n
See: ABORT Statement in SAS Language Reference: Dictionary

Syntax
Details
See Also

Syntax

ABORT <ABEND | RETURN> <n>;

Note:   This is a simplified explanation of the ABORT statement syntax. For the complete explanation, see SAS Language Reference: Dictionary.  [cautionend]

no argument

stops processing of 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. 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 to 6 and greater than 997 are reserved for use by SAS.


Details

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.


See Also

Previous Page | Next Page | Top of Page