Chapter Contents

Previous

Next
LIBREF

LIBREF



Verifies that a libref has been assigned and returns a value

Category: SAS File I/O


Syntax
Arguments
Details
Examples
See Also

Syntax

LIBREF(libref)

Arguments

libref
specifies the libref to be verified.


Details

LIBREF returns 0 if the operation was successful, [ne]0 if it was not successful.


Examples

This example verifies a libref. If an error or warning occurs, the message is written to the log. Under some operating environments, the user can assign librefs by using system commands outside the SAS session.

%if (%sysfunc(libref(sashelp))) %then
  %put %sysfunc(sysmsg());

See Also

Function:

LIBNAME


Chapter Contents

Previous

Next

Top of Page

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