data perm.sales07;
infile data07;
input ID $
data perm.sales07;
infile data07;
input ID $ @;
input Sales : comma. @;
output;
data perm.sales07; infile data07; input ID $ @; input Sales : comma. @; output; input Sales : comma. @; output; input Sales : comma. @; output; input Sales : comma. @; output; run;
data perm.sales07; infile data07; input ID $ @; do Quarter=1 to 4; input Sales : comma. @; output; end; run;
data perm.sales07; infile data07; input ID $ @; do Quarter=1 to 4; input Sales : comma. @; output; end; run;
1
as
the loop begins to execute.
2
.
3
, and
then 4
. In the process, the third and
fourth observations are written.
5
at
the bottom of the DO loop and control returns to the top of the loop.
The loop does not execute again because the value of Quarter is now
greater than 4
.
proc print data=perm.sales07; run;
3.147.27.131