Assigning a Libref Interactively

An easy way to associate a libref with PC files data is to use the New Library user interface. To access: Issue the DMLIBASSIGN command from the SAS session command line. You can also access the New Library window by right-clicking the libraries icon in the Explorer window and selecting New.
Note: Use of LIBNAME locks the file, and you must use a LIBNAME clear to unlock the file.
New Library Window
New Library Window
  • Name: up to eight alphanumeric characters. The library reference (libref) that you want to assign. Use the libref to point SAS to a SAS library or an external data source.
  • Engine: select the engine that you want to use. The default engine enables SAS to choose which engine to use based on the existing data sets in a library. If no data sets exists in the same location as your new library, the Base SAS engine is assigned.
  • Enable at startup: select to assign the specified libref to automatically when you open a SAS session. If you select Enable at Startup, you must go to Solutionsthen selectAccessoriesthen selectRegistry Editorthen selectCOREthen selectOPTIONSthen selectLIBNAMES to remove the libref.
  • Path: specifies the path of the libref.
  • Library Information: represents the SAS/ACCESS connection options and vary according to the SAS/ACCESS engine that you specify. Enter the appropriate information for your PC file format.
  • OK: click this button to assign the libref, or click Cancel to exit the window without assigning a libref.