Chapter Contents

Previous

Next
SYSLIBRC

SYSLIBRC



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 data 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.

Values for SYSLIBRC are

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


Chapter Contents

Previous

Next

Top of Page

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