Language Reference

DELETE Call

deletes a SAS data set

CALL DELETE( <libname,> member-name);

The inputs to the DELETE subroutine are as follows:
libname
is a character matrix or quoted literal containing the name of a SAS data library.

member-name
is a character matrix or quoted literal containing the name of a 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 */
 

Previous Page | Next Page | Top of Page