Chapter Contents

Previous

Next
SAS Companion for the OpenVMS Operating Environment

Clearing Librefs

To disassociate a libref from a SAS data library, use the following forms of the LIBNAME statement or the LIBNAME function, where libref is the libref of the data library that you want to clear:

LIBNAME statement:

LIBNAME libref <CLEAR>;

LIBNAME function:

LIBNAME(libref)

In both cases, the libref is cleared only if there are no open files that are associated with that libref, and the libref is cleared only for the SAS process or job from which you submit the LIBNAME statement or function.

You can also use the SAS Explorer window to clear librefs, as follows:

  1. With the tree structure activated, select the libref from the Libraries node.

  2. With the cursor on the highlighted libref, click and hold the right mouse button (MB3).

  3. A pop-up menu opens.

  4. Select Delete.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.