SASPairs:
Genetic modeling in SAS

Rembrandt, The Scholar

 

How do I assign a SAS Libname?

 

Background:

In SAS, Libname is short for Library Name. A SAS Library is nothing more than a folder in Windows (or a directory in Linux/Unix) that contains SAS files. To avoid typing in a long folder name, SAS assigns a short "nickname" to a folder. One can then refer to the folder using this short nickname. This nickname is the Libname. There are four rules for the Libname.

  1. No more than 8 characters.
  2. The first character must be a letter.
  3. Subsequent characters may be letters, numbers or an underscore.
  4. No spaces.

 

 

Instructions:

  1. Either click on the "New Library" button or in SAS Explorer, right-click on Libraries and select New.
  2. Enter the "nickname" for the folder. (Remember: no more than 8 characters, no spaces, first character must be a letter, subsequent characters can be letters, numbers or an underscore).
  3. Click the "Browse" button, navigate to the desired folder, and select it.
  4. Click the "Ok" button when finished.