Search notes:

SAS: sashelp.vlibnam

Macro %library_info

The following simple macro gets the data from sashelp.vlibnam to print some information about a library.
It is executed with the (uppercase) name of a library: %library_info(TQ84_LIB) (assuming that TQ84_LIB is the name of a library).
The output might look like this:
sysname                        sysvalue

Filename             /share/home/tq84/sas/tq84_lib
Inode Number         21665
Access Permission    rwx------
Owner Name           tq84
File Size                         4KB

_LABEL_                COL1

Engine Name            V9
Pathname               /share/home/tq84/sas/tq84_lib
Default File Format    7
Read-only?             no
Temp Access?           no

Columns

 1  libname        char     8  Library Name
 2  engine         char     8  Engine Name
 3  path           char  1024  Pathname
 4  level          num      8  Library Concatenation Level
 5  fileformat     char     8  Default File Format
 6  readonly       char     3  Read-only?
 7  sequential     char     3  Sequential?
 8  sysdesc        char  1024  System Information Description
 9  sysname        char  1024  System Information Name
10  sysvalue       char  1024  System Information Value
11  temp           char     3  Temp Access?
Github repository about-SAS, path: /programming/libraries/SASHELP/views/columns/vlibnam

Origin of data

The view gets its data from dictionary.libnames.

See also

sashelp views

Index