Page 22 - SAS_manual
P. 22
Program 3.11
Output:
The colon (:) modifier allows us to use list input to read nonstandard data values and character values
that are longer than eight characters, but which contain no embedded blanks. The colon (:) indicates that
values are read until a blank (or other delimiter) is encountered, and then an informat is applied. If an
informat for reading character values is specified, the w value specifies the variable's length, overriding
the default length of 8.
The Ampersand (&) Modifier:
Tells SAS to stop reading the data value whenever SAS encounter more than single space or delimiter.
Because the ampersand (&) modifier allows us to use list input to read character values containing single
embedded blanks, it is the tool that we will want to use to read in the city names or full name of a person.
Program 3.12:
SAS HANDBOOK | VISIT:: http://nikhilanalytics.com 22

