The output control data
set contains information that describes informats or formats. Output
control data sets have a number of uses. For example, an output control
data set can be edited with a DATA step to programmatically change
value ranges or can be subset with a DATA step to create new formats
and informats. In addition, you can move formats and informats from
one operating environment to another by creating an output control
data set, using the CPORT procedure to create a transfer file of the
data set, and then using the CIMPORT and FORMAT procedures in the
target operating environment to create the formats and informats there.
You create an output
control data set with the CNTLOUT= option in the PROC FORMAT statement.
You use output control data sets, or a set of observations from an
output control data set, as an input control data set in a subsequent
PROC FORMAT step with the CNTLIN= option.
Output control data
sets contain an observation for every value or range in each of the
informats or formats in the LIBRARY= catalog. The data set consists
of variables that give either global information about each format
and informat created in the PROC FORMAT step or specific information
about each range and value.
The variables in the
output control data set are as follows:
specifies a numeric
variable that indicates the default length for format or informat.
specifies a character
variable that gives the range's ending value.
specifies a character
variable that indicates whether the range's ending value is excluded.
Valid values are as follows:
specifies that the
range's ending value is excluded.
specifies that the
range's ending value is not excluded.
for picture formats,
specifies a numeric variable whose value is the value of the FILL=
option.
specifies a character
variable whose value is the format or informat name.
specifies a numeric
variable whose value is the value of the FUZZ= option.
specifies a character
variable that contains range information about the format or informat.
The following valid values can appear in any combination:
specifies a standard
SAS format or informat that is used with a value.
specifies that a range's
ending value is HIGH.
specifies a numeric
informat range.
specifies justification
for an informat.
specifies that a range's
starting value is LOW.
specifies that the
MULTILABEL option is in effect.
specifies that the
format or informat has no ranges, including no OTHER= range.
specifies that the
range is OTHER.
specifies that the
ROUND option is in effect.
specifies that the
NOTSORTED option is in effect.
specifies that the
UPCASE option for an informat be used.
specifies a character
variable whose value is associated with a format or an informat.
specifies a numeric
variable whose value is the value of the LENGTH= option.
specifies a numeric
variable whose value is the value of the MAX= option.
specifies a numeric
variable whose value is the value of the MIN= option.
specifies a numeric
variable whose value is the value of the MULT= option.
for picture formats,
specifies a numeric variable whose value indicates whether the NOEDIT
option is in effect. Valid values are as follows:
specifies that the
NOEDIT option is in effect.
specifies that the
NOEDIT option is not in effect.
for picture formats,
specifies a character variable whose value is the value of the PREFIX=
option.
specifies a character
variable that indicates whether the range's starting value is excluded.
Valid values are as follows:
specifies that the
range's starting value is excluded.
specifies that the
range's starting value is not excluded.
specifies a character
variable that gives the range's starting value.
specifies a character
variable that indicates the type of format. Possible values are as
follows:
specifies a character
format.
specifies a numeric
informat.
specifies a character
informat.
specifies a numeric
format (excluding pictures).
specifies a picture
format.
The following output
shows an output control data set that contains information about all
the informats and formats created in the FORMAT procedure examples.
Output Control Data Set for PROC FORMAT Examples
You
can use the SELECT or EXCLUDE statement to control which formats and
informats are represented in the output control data set.
For details, see SELECT Statement and EXCLUDE Statement.