Previous Page | Next Page

The FSEDIT Procedure

INFORMAT Statement

Associates informats with variables in the input data set. Informats are patterns that the SAS System uses to determine how values that are entered in variable fields should be interpreted. The informats can be either SAS informats or custom informats that you have defined with the FORMAT procedure.
Reminder: INFORMAT statements are ignored if you use them in conjunction with a PROC FSEDIT statement that includes the NEW= option.

INFORMAT variable-list informat <... variable-list-n informat-n>;


At least one pair of the following arguments is required:


consists of one or more variable names from the input data set.


is the SAS informat or user-defined informat to associate with the specified variable or variables.

Using the INFORMAT Statement

You can use a single INFORMAT statement to assign the same informat to several variables or to assign different informats to different variables. You can use any number of INFORMAT statements with each PROC FSEDIT statement.

Informats that are specified in an INFORMAT statement take precedence over informats that are defined in the data set itself. Informats that are assigned in an INFORMAT statement remain in effect only for the duration of the procedure; the INFORMAT statement does not affect any informat assignments that are stored in the data set.

When using INFORMAT statements with the FSEDIT procedure, you should make sure the informats that you assign to variables are compatible with the formats for those variables. Otherwise, you will complicate the process of editing the values of the variables. For example, suppose the data set that is displayed by the FSEDIT procedure contains a variable AMOUNT that is assigned the informat 10.2 and the format DOLLAR10.2. Because of the format, values in the field for the variable AMOUNT are displayed with commas and a leading dollar sign:

AMOUNT:   $1,250.00

However, if you edit this field value (for example, changing it to $1,150.00) and press ENTER, an error condition occurs. The 10.2 informat does not allow the dollar sign ($) or comma characters in entered values. An appropriate informat for this variable is COMMA., which does allow these characters.

Refer to SAS Language Reference: Dictionary for more detailed information about informats and on the INFORMAT statement. See the description of the FORMAT procedure in Base SAS Procedures Guide for information about defining your own informats.

Previous Page | Next Page | Top of Page