現在のオブザベーションをSASデータセットに書き込みます。
| 該当要素: | DATAステップ |
| カテゴリ: | アクション |
| 種類: | 実行 |
output;
if deptcode gt 2000 then output;
if phone=. then output markup;
data response(drop=time1-time3); set sulfa; time=time1; output; time=time2; output; time=time3; output; run;
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;