Previous Page | Next Page

Statements

ENDSAS Statement



Terminates a SAS job or session after the current DATA or PROC step executes.
Valid: anywhere
Category: Program Control

Syntax
Without Arguments
Details
Comparisons
See Also

Syntax

ENDSAS;


Without Arguments

The ENDSAS statement terminates a SAS job or session.


Details

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]


Comparisons

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.


See Also

SYSSTARTID Automatic Macro Variable in SAS Macro Language: Reference

Previous Page | Next Page | Top of Page