| Language Reference |
deletes a SAS data set
The DELETE subroutine deletes a SAS data set in the specified library. If a one-level name is specified, the default SAS data library is used. (See the DEFLIB= option in the description of the RESET statement.)
Some examples follow:
call delete(work,a); /* deletes WORK.A */
reset deflib=work; /* sets default libname to WORK */
call delete(a); /* also deletes WORK.A */
d=datasets('work'); /* returns all data sets in WORK */
call delete(work,d[1]);
/* deletes data set whose name is */
/* first element of matrix D */
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.