UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

SAS FAQ
How do I use a SAS data file with a format library?

Say that you have a version 8 SAS data file called auto.sas7bdat and a version 8 format library for it called formats.sas7bcat on your computer in c:\ . You would like to use the formats when you display your data.  Here is an example showing how you can use the formats stored in the format library.

libname in "c:\";
libname library "c:\";

PROC FREQ DATA=in.auto;
   TABLES foreign make;
RUN;   

By including the libname library "c:\"; SAS looks for the format library in that location and can access the formats stored in it.


How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California