Deletes entries from the current file location.
Restriction: |
The root file location cannot be deleted
or moved.
|
Caution: |
The DELETE statement affects all levels of a
file location below the specified path.
|
DELETE path<(where-expression)> <,
path-2<(where-expression-2)>>
<, ...path-n<(where-expression-n)>> </ LEVELS= ALL |
value>;
|
-
path
-
specifies the location of one or more links,
output objects, or file locations. For example, the following DELETE statement removes the ClassLevels
and Nobs entries from the current directory:
delete classlevels, nobs;
run;
Requirement: |
Separate multiple
paths with commas. |
Tip: |
You can use the symbol '^' to represent
the current path and the symbol '^^' to represent the parent path. |
-
LEVELS=
ALL | value
-
specifies the level of the path that you want to delete.
- ALL
-
specifies all levels of the path.
- value
-
specifies the numeric value of the path level.
Default: |
ALL |
Restriction: |
The LEVELS= option is valid only
when you specify a directory. |
-
where-expression
-
selects, for deletion, entries in an ODS document that meet
a particular condition.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.