Chapter Contents

Previous

Next
LIBNAME

LIBNAME



Assigns or deassigns a libref for a SAS data library and returns a value

Language element: function
Category: SAS file I/O
OpenVMS specifics: valid values for SAS-data-library


Syntax
Details
See Also

Syntax

LIBNAME(libref,<,'SAS-data-library'<,engine <,options>>>)

SAS-data-library
is the name of the directory that contains the SAS data library, enclosed in single or double quotation marks. You can omit this argument if you are merely specifying the engine for a libref or an OpenVMS logical name that you previously assigned.

If the directory that you specify does not already exist, then you must create it before you attempt to use the libref that you have assigned to it.


Details

The SAS-data-library has a value of "[]" (with no space) to assign a libref to the current directory. (The behavior of the LIBNAME function when a single space is specified for the SAS data library is host dependent.) If no value is provided for SAS-data-library or if SAS-data-library has a value of "" (with no space), the LIBNAME function dissociates the libref from the data library.

Under OpenVMS, OpenVMS logical names (assigned by using the DCL DEFINE command) can also be used to refer to SAS data libraries. For more information, see Assigning OpenVMS Logical Names.

See Also


Chapter Contents

Previous

Next

Top of Page

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