/***************************************************************************************************************** SAS file name: Delete_Datasets.sas File location: _________________________________________________________________________________________________________________ Purpose: To demonstrate how to use the PROC DATASETS to delete all or some datasets in a library. Author: Peter Clemmensen Creation Date: 16/07/2017 This program supports the example page "Delete all datasets in library" on SASnrd.com *****************************************************************************************************************/ /* Create sample datasets a, b and c */ data a; a=1; run; data b; b=1; run; data c; c=1; run; /* Delete all datasets in a library */ proc datasets library=work kill nolist; quit; /* Delete specific datasets in a library */ proc datasets library=work nolist; delete b; quit; /* Save specific datasets in a library */ proc datasets library=work nolist; save b; quit;