Accessing Disk-Format Data Libraries in UNIX Environments


You will probably create and access data libraries on disk more than any other type of library. The default engine and the compatibility engines allow read, write, and update access to SAS files on disk. They also support indexing and compression.

In the following example, the In libref is assigned to a directory that contains the Stats1 data set:

 libname in '/users/myid/myappl';   proc print data=in.stats1;   run; 

Remember, a SAS-data-library must already exist before SAS can read from or write to this directory. For example, if you want to create the SAS data set Orders in a directory, use the X statement to issue the mkdir UNIX command. Then you can use the LIBNAME statement to associate the libref with the directory.

 x mkdir /users/publish/books;   libname books '/users/publish/books';   data books.orders;  more SAS statements  run; 

By default, the LIBNAME statement associates the V9 engine with the directory.




SAS 9.1 Companion for UNIX Environments
SAS 9.1 Companion For Unix Enivronments
ISBN: 1590472101
EAN: 2147483647
Year: 2004
Pages: 185
Authors: SAS Institute

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net