SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Setting Up Your SAS Session
Referencing Files in SAS Libraries


You've seen that you can assign librefs to access different types of data. Remember from the lesson Working in the SAS Environment that, after you have assigned a libref, you can view
  • details about the library that the libref references
  • the library's contents
  • contents and properties of files in the library.


Viewing Librefs

The libraries currently defined for your SAS session are listed under Libraries in the Explorer window. To view details about a library, double-click Libraries (or select Libraries, and then Open from the pop-up menu). Then select

View ---> Details

Information for each library (name, engine, type, host pathname, and date modified) is listed under Active Libraries.


Details about currently defined libraries


Viewing a Library's Contents

To view the contents of a library, double-click the library name (or select the library name, and then Open from the pop-up menu). A list of the files contained in the library is displayed. If you have details turned on, information about each file (name, size, type, description, and date modified) is also listed.


Explorer window with Contents displayed


Viewing a File's Contents

To display a file's contents, you can double-click the filename (or select the filename, and then Open from the pop-up menu). If you select a SAS data set (type Table or View), its contents are displayed in the VIEWTABLE window.


Contents of a SAS data set


To display a file's properties, you can select the filename, and then Properties from the pop-up menu.


back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement