Chapter Contents |
Previous |
Next |
DELETE |
Valid: | in a DATA step |
Category: | Action |
Type: | Executable |
Syntax | |
Without Arguments | |
Details | |
Comparisons | |
Examples | |
Example 1: Using the DELETE Statement as Part of an IF-THEN Statement | |
Example 2: Using the DELETE Statement to Subset Raw Data | |
See Also |
Syntax |
DELETE; |
Details |
The DELETE statement is often used in a THEN clause of an IF-THEN statement or as part of a conditionally executed DO group.
Comparisons |
Examples |
When the value of LEAFWT is missing, the current observation is deleted:
if leafwt=. then delete;
data topsales; infile file-specification; input region office product yrsales; if yrsales<100000 then delete; run;
See Also |
Statements:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.