Terminates a SAS job or session after the current DATA or PROC step executes
Valid: anywhere
Category: Program Control
ENDSAS ;
The ENDSAS statement terminates a SAS job or session.
ENDSAS is most useful in interactive or windowing sessions.
Note: ENDSAS statements cannot be part of other statements such as IF-THEN statements.
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 .
SYSSTARTID Automatic Macro Variable in SAS Macro Language: Reference