ENDSAS is most useful
in interactive or windowing sessions.
Note: ENDSAS statements are always
executed at the point that they are encountered in a DATA step. Use
the ABORT RETURN statement to stop processing when an error condition
occurs (for example, in the clause of an IF-THEN statement or a SELECT
statement).