input @15 style $3. @21 price 5.2;The $w. character informat reads values into the variable STYLE. The w.d numeric informat reads values into the variable PRICE.
TempCharacter='98.6'; TemperatureNumber=input(TempCharacter,4.);The INPUT function in combination with the w.d informat converts the character value of TempCharacter to a numeric value and assigns the numeric value 98.6 to TemperatureNumber.
informat Birthdate Interview date9.; input @63 Birthdate Interview;
attrib Birthdate Interview informat=date9.; input @63 Birthdate Interview;
System Option
|
Result
|
---|---|
FMTERR
|
SAS produces an error
that causes the current DATA or PROC step to stop.
|
NOFMTERR
|
SAS continues processing
by substituting a default informat.
|