Valid in: | DATA step |
Category: | Action |
Type: | Executable |
You can specify up to as many data sets in the OUTPUT statement as you specified in the DATA statement for that DATA step.
data ozone oxides;
infile file-specification;
input city $ 1-15 date date9.
chemical $ 26-27 ppm 29-30;
if chemical='O3' then output ozone;
else output oxides;
run;
data discards; set gadgets; drop defects; reps+1; if reps=1 then total=0; total+defects; if reps=10 then do; output; stop; end; run;