Chapter Summary

Text Summary

Invoking PROC FORMAT

The FORMAT procedure enables you to substitute descriptive text for the values of variables. The LIBRARY= option stores the new formats in a specified format catalog; otherwise, they are stored in a default catalog named Work.Formats. The keyword FMTLIB displays the formats and values that are currently stored in the catalog. The VALUE statement defines a new format for the values of a variable.

Defining a Unique Format

Formats can be specified for a single value, a range of values, or a list of unique values. Unique values must be separated by commas. When character values are specified, the values must be enclosed in quotation marks, and the format name must begin with a dollar sign ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.