Terminates a SAS job or session after the current DATA or PROC
step executes.
Valid: |
anywhere
|
Category: |
Program Control
|
The ENDSAS statement terminates a SAS job or
session.
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. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
You can also terminate a SAS job or session by using the
BYE or the ENDSAS command from any SAS window command line. For details, refer
to the online Help for SAS windows.
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.