O'Reilly logo

SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required