END Statement

Ends a DO group or SELECT group processing.
Valid in: DATA step
Category: Control
Type: Declarative

Syntax

END;

Without Arguments

Use the END statement to end DO group or SELECT group processing.

Details

The END statement must be the last statement in a DO group or a SELECT group.

Example: Using the END Statement

This example shows a simple DO group and a simple SELECT group:
  • do;
          ...more SAS statements...
    end;
  • select(expression);
       when(expression) SAS statement;
       otherwise SAS statement;
    end;

See Also