All read as 2 3 4 M In a similar way, numeric values can appear anywhere in the specified column range. Consider the use of the following INPUT statement to read values for the numeric variable X: INPUT X 1-6; 1 2 2 - 2 3 2 3 2 .
Etc... indd 37 10/15/09 4:21:27 PM 38 Getting Data into SAS FORMAT is the SAS keyword that begins the statement. VAR1 is a variable name to which a format is to be applied and FORMAT1. ) to apply to VAR1. FORMAT2. applies to VAR2, VAR3, and VAR4. You may define any number of FORMATs to variables within this statement. The following code illustrates the use of the FORMAT statement: DATA MYDATA; INPUT @1 NAME $11. ; * Assigns an output format to BDATE; DATALINES; Bill Jane Clyde 08JAN1952 02FEB1953 23MAR1949 ; PROC PRINT; RUN; In this SAS program, the INFORMAT DATE9.