SAS immediately deletes
SAS files when the RUN group executes. You do not have an opportunity
to verify the delete operation before it begins.
If the SAS file has
an ALTER= password assigned, it must be specified in order to delete
the SAS file.
If you attempt to delete
a SAS file that does not exist in the procedure input library, PROC
DATASETS issues a message and continues processing. If NOWARN is used,
no message is issued.
When you use the DELETE
statement to delete a data set that has indexes associated with it,
the statement also deletes the indexes.
You cannot use the DELETE
statement to delete a data file that has a foreign key integrity constraint
or a primary key with foreign key references. For data files that
have foreign keys, you must remove the foreign keys before you delete
the data file. For data files that have primary keys with foreign
key references, you must remove the foreign keys that reference the
primary key before you delete the data file.