The ABORT statement
causes SAS to stop processing the current DATA step. What happens
next depends on
-
the method that you use to submit
your SAS statements
-
the arguments that you use with
ABORT
-
your operating environment.
The ABORT statement
usually appears in a clause of an IF-THEN statement or a SELECT statement
that is designed to stop processing when an error condition occurs.
Note: The return code generated
by the ABORT statement is ignored by SAS if the system option ERRORABEND
is in effect.
Note: When you execute an ABORT
statement in a DATA step, SAS does not use data sets that were created
in the step to replace existing data sets with the same name.
Operating Environment Information: The only difference between the ABEND and RETURN options is that
with ABEND further action is based on how your operating environment
and site treat jobs that end abnormally. RETURN simply returns a condition
code that indicates an error.