Assigning a Libref Interactively

An easy way to associate a libref with a relational DBMS is to use the New Library window in the SAS windowing environment. One method to open this window is to issue the DMLIBASSIGN command from your SAS session's command box or command line. You can also open the window by clicking the file cabinet icon in the SAS Explorer toolbar. Below, the user Samantha assigns a libref MYORADB to an Oracle database that the SQL*Net alias ORAHRDEPT references. By using the SCHEMA= LIBNAME option, Samantha can access database objects that another user owns.

Note: SAS windowing environment is not applicable to SAS Viya.
New Library Window
New Library Window

Here is how to use the features of the New Library window.

Last updated: February 3, 2026