Defining a Unique Format


You can use the VALUE statement to define a format for displaying one or more values.
General form, VALUE statement:
VALUE format-name
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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.