Suppose that some of
the employees quit at various times. Their records might not contain
sales totals for the second, third, or fourth quarters. These records
contain a variable number of repeating fields.
The DATA step that you
just wrote does not work with a variable number of repeating fields
because now the value of Quarter is not constant for every record.
data perm.sales07;
infile data07;
input ID $ @;
do Quarter=1 to 4;
input Sales : comma. @;
output;
end;
run;