The FORMAT procedure
enables you to define your own formats for variables. The VALUE statement
is commonly used to create numeric or character formats by defining
character strings to display in place of values. Suppose you have
airline data and you want to create several custom formats that you
can use for your report. You need to create three different types
of formats to do these tasks:
-
group airline routes into zones
-
label airport codes as International
or Domestic
-
group cargo revenue figures into
ranges
You can use PROC FORMAT
with the VALUE statement to create two character formats, $ROUTES.
and $DEST., and a numeric format, REVFMT.
Suppose one of the ...