Applying SAS Formats and Informats

Temporarily Assigning Formats to Variables

In your SAS reports, formats control how the data values are displayed. To make data values more understandable when they are displayed in your procedure output, you can use the FORMAT statement, which associates formats with variables.
Formats affect only how the data values appear in output, not the actual data values as they are stored in the SAS data set.
Syntax, FORMAT statement:
FORMAT variable(s) format-name;
  • variable(s) is the name of one or more variables whose values are to be written according to a particular pattern
  • format-name specifies a SAS format or a user-defined format that is used to write out the values.
Tip:The FORMAT ...

Get SAS Certification Prep Guide, 5th 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.