SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Formatting Variable Values
Associating User-Defined Formats with Variables


When you build a large catalog of permanent formats, it can be easy to forget the exact spelling of a specific format name or its range of values. Adding the keyword FMTLIB to the PROC FORMAT statement displays a list of all the formats in your catalog and a description of their values.
     libname library 'c:\sas\formats\lib';
        proc format library=library fmtlib;
     run;

When you submit this PROC step, the Output window displays a description of each format in your permanent catalog.


SAS Output
Format Name: JobFmt Length: 23 Number of Values: 5
Min Length: 1 Max Length: 40 Default Length: 23 Fuzz: Std
START END LABEL      (VER. 9.00 29AUG2001:11:13:14)
103
103
manager
105
105
text processor
111
111
assoc. technical writer
112
112
technical writer
113
113
senior technical writer


In addition to the name, range, and label, the format description includes the
  • length of the longest label
  • number of values defined by this format
  • version of SAS software used to create the format
  • the date and time of creation.

back||next


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

Terms of Use & Legal Information | Privacy Statement