Previous Page | Next Page

Automatic Macro Variables

SYSLIBRC Automatic Macro Variable



Contains the return code from the last LIBNAME statement.
Type: Automatic macro variable (read and write)

Details

Details

The code reports whether the last LIBNAME statement executed correctly. SYSLIBRC checks whether the SAS library referenced by the last LIBNAME statement exists. As an example, you could use SYSLIBRC to confirm that a libref is allocated before you attempt to access a permanent data set.

The following are values for SYSLIBRC:

Value Description
0 The last LIBNAME statement executed correctly.
[ne]0 The last LIBNAME statement did not execute correctly.

Previous Page | Next Page | Top of Page