Published on :
Utility CREATION_INTERNE

Deletion of WORK data

This code is also available in: Deutsch Español Français
The code uses PROC DATASETS with the KILL option to erase all data tables present in the WORK library. The NOLIST option prevents the display of the list of deleted members in the log. This script is typically included in SAS© editor tools to clean the working environment.
Data Analysis

Type : CREATION_INTERNE


The script acts on the temporary 'WORK' library, which contains data created during the current SAS session. No external or pre-existing data is used as input.

1 Code Block
PROC DATASETS
Explanation :
This block executes the DATASETS procedure to manage libraries and their members. The `LIBRARY=WORK` option targets the temporary working library. `MEMTYPE=DATA` specifies that only members of type 'DATA' (data tables) should be processed. The `KILL` option orders the deletion of all specified members. Finally, `NOLIST` removes the list of processed members from the SAS log, making the log more concise.
Copied!
1PROC DATASETS library=work
2 memtype=DATA
3 kill
4 nolist;
5 QUIT;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.