討論串[問題] SAS資料處理
共 19 篇文章
內容預覽:
data XXXX;. retain flag;. set XXXX;. by id;. if first.id then flag=0;. if x1=1 and flag=0 then. do;. flag=1;. output;. end;. if last.id and flag=0 the
(還有52個字)
內容預覽:
%macro com;. %do companyy=10001 %to 90000; IF (COMPANY=&companyy); OUTFILE= "E:\&companyy..txt"%end;%mend;. %com;. --. (C)lass 【 分組討論區 】. 11 卡漫夢工廠 卡通,
(還有107個字)
內容預覽:
我現在有一筆容量蠻大的資料(3GB多),. 想依照分類將他們分割成很多個.txt檔。. LIBNAME SB 'D:\[Sto]';. DATA sto;. set SB.aaaaa;. IF (COMPANY=10001);. RUN;. PROC EXPORT DATA= WORK.sto. O
(還有86個字)
內容預覽:
用推文的好像有點失敗. 利用retain 這個指令. retain order1 0;. if orser=1 then order1=response;. 這樣應該就能滿足你的需求. 另外 你的例子 不容易懂. SUBJECT FAMILY ORDER RESPONSE. 1501101 1 1
(還有312個字)