Chapter Contents |
Previous |
Next |
The FORMAT Procedure |
Reminder: | You can use data set options with the CNTLIN= and CNTLOUT= data set options.See Data Set Options for a list. |
PROC FORMAT <option(s)>; |
To do this | Use this option | |
---|---|---|
Specify a SAS data set from which PROC FORMAT builds an informat or format | CNTLIN= | |
Create a SAS data set that stores information about informats or formats | CNTLOUT= | |
Print information about informats or formats | FMTLIB | |
Specify a SAS catalog that will contain the informats or formats that you are creating in the PROC FORMAT step | LIBRARY= | |
Specify the number of characters of the informatted or formatted value that appear in PROC FORMAT output | MAXLABLEN= | |
Specify the number of characters of the start and end values that appear in the PROC FORMAT output | MAXSELEN= | |
Prevent a new informat or format from replacing an existing one of the same name | NOREPLACE | |
Print information about each format and informat on a separate page | PAGE |
Options |
Tip: | A common source for an input control data set is the output from the CNTLOUT= option of another PROC FORMAT step. |
See also: | Input Control Data Set |
Featured in: | Creating a Format from a Data Set |
If you are creating an informat or format in the same step that the CNTLOUT= options appears, the informat or format that you are creating is included in the CNTLOUT= data set.
If you specify a one-level name, the procedure stores the data set in the default data library (either the WORK data library or the USER data library), regardless of whether you specify the LIBRARY= option.
Tip: | You can use an output control data set as an input control data set in subsequent PROC FORMAT steps. |
See also: | Output Control Data Set |
Interaction: | The PAGE option invokes FMTLIB. |
Tip: | If your output from FMTLIB is not formatted correctly, try increasing your linesize. |
Tip: | If you use the SELECT or EXCLUDE statement and omit the FMTLIB and CNTLOUT= options, the procedure invokes the FMTLIB option and you receive FMTLIB option output. |
Featured in: | Printing the Description of Informats and Formats |
Alias: | LIB= |
Default: | WORK.FORMATS |
Tip: | SAS automatically searches LIBRARY.FORMATS. You may want to use the LIBRARY libref for your format catalog. |
See also: | Storing Informats and Formats |
Featured in: | Creating a Picture Format |
Tip: | The PAGE option activates the FMTLIB option. |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.