Chapter Contents |
Previous |
Next |
SAS Companion for the OS/390 Environment |
The method you use to deallocate a SAS data library depends on how it was allocated.
LIBNAME libref <CLEAR>; |
This statement deassigns the libref and deallocates the library only if no other librefs are assigned to that library.
Note: Librefs that were assigned by a LIBNAME statement or
LIBNAME function are cleared automatically at the end of your SAS session.
For example, suppose that a SAS data library with the libref MYLIB is stored in the operating environment data set MYID.RECENT.DATA. The following two statements would clear the libref and deallocate the operating environment data set:
libname mylib clear; x free da('myid.recent.data');
If the data library is currently being used by a DATA step or PROC, the attempt to deallocate the library fails.
Note: If multiple librefs have been
assigned to the same operating environment data set, the data set is not deallocated
until all librefs assigned to the data set have been cleared.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.