Summary

Statements

DATA <libref-1> SAS-data-set-1< . . .<libref-n> SAS-data-set-n>;
names the SAS data sets to be created in the DATA step.
DELETE;
deletes the current observation. The DELETE statement is usually used as part of an IF-THEN/ELSE group.
IF condition;
tests whether condition is true. If it is true, then SAS continues to process the current observation. If it is not true, then SAS stops processing the observation, does not add it to the SAS data set, and returns to the top of the DATA step. The conditions that are used are the same as in the IF-THEN/ELSE statements. This type of IF statement is called a subsetting IF statement because it produces a subset of the original observations.
OUTPUT <SAS-data-set>;
immediately ...

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.