Defining a Unique Format

Overview

You can use the VALUE statement to define a format for displaying one or more values.
General form, VALUE statement:
VALUE format-name
range1='label1'
range2='label2'
...;
where format-name
  • must begin with a dollar sign ($) if the format applies to character data
  • must be a valid SAS name
  • cannot be the name of an existing SAS format
  • cannot end in a number
  • does not end in a period when specified in a VALUE statement.
Note: In SAS 8.2, the format name must be a SAS name up to eight characters in length, not ending in a number.
Note: Beginning with SAS®9, a numeric format name can be up to 32 characters in length. A character format name can be up to 31 characters in length. ...

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.