Deletes all the SAS files in a library except the
ones listed
in the SAVE statement.
SAVE SAS-file-1 <...SAS-file-n> </
MEMTYPE=mtype>;
|
- SAS-file-1 <...SAS-file-n>
-
specifies one or more SAS files that you do not want to
delete from the SAS library.
- MEMTYPE=mtype
-
restricts processing to one member type. You can use the
option either in parentheses after the name of each SAS file or after a forward
slash.
-
If one of the SAS files in SAS-file does not exist
in the procedure input library, PROC DATASETS stops processing the RUN group
containing the SAVE statement and issues an error message. To override this
behavior, specify the NOWARN option in the PROC DATASETS statement.
-
When the SAVE statement deletes SAS data sets, it also deletes
any indexes associated with those data sets.
- CAUTION:
- SAS immediately deletes libraries and library members
when you submit a RUN group.
You are not asked to verify
the delete operation before it begins. Because the SAVE statement deletes
many SAS files in one operation, make sure that you understand how the MEMTYPE=
option affects which types of SAS files are saved and which types are deleted. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
-
When you use the SAVE statement with generation groups, the SAVE
statement treats the base version and all historical versions as a unit. You
cannot save a specific version.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.