The #
n pointer
controls in the program below cause four records to be read for each
execution of the DATA step.
data perm.patients;
infile patdata;
input #4 ID $5.
#1 Fname $ Lname $
#2 Address $23.
#3 City $ State $ Zip $
#4 @7 Doctor $6.;
run;
The first time the DATA
step executes, the first four records are read, and an observation
is written to the data set.
During the second iteration,
the next four records are read, and the second observation is written
to the data set, and so on.
The PROC PRINT output
of the data set shows how information that was spread over several
records has been condensed into one observation.
proc print data=perm.patients noobs;
run;