Summary

Statements

DELETE;
prevents SAS from writing a particular observation to the output data set. It usually appears as part of an IF-THEN/ELSE statement.
IF condition THEN action ELSE action;
tests whether the condition is true. When the condition is true, the THEN statement specifies the action to take. When the condition is false, the ELSE statement provides an alternative action. The action can be one or more statements, including assignment statements.
LENGTH variable <$> length;
assigns the number of bytes of storage (length) for a variable. Include a dollar sign ($) if the variable is character. The LENGTH statement must appear before the first use of the variable.
variable = expression
is an assignment statement. ...

Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.