Defining a Unique Format

The VALUE Statement

Use the VALUE statement to define a format for displaying one or more values.
Syntax, VALUE statement:
VALUE format-name
range1='label1'
range2='label2'
...more format-names...;
The following are true about format-name:
  • A format name must begin with a dollar sign ($) if the format applies to character data.
  • A format name must be a valid SAS name.
  • A format name cannot be the name of an existing SAS format.
  • A format name cannot end in a number.
  • A format name does not end in a period when specified in a VALUE statement.
  • A numeric format name can be up to 32 characters long.
  • A character format name can be up to 31 characters long.
Tip:If you are running ...

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