[程式] sas合併問題

看板Statistics作者 (Takamini)時間12年前 (2013/10/15 14:15), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串2/3 (看更多)
------------------------------------------------------------------------ [軟體程式類別]:SAS 請填入軟體程式類別 例如SAS、SPSS、R、EVIEWS...等 [程式問題]:資料處理 資料處理、迴歸、敘述統計、logistic、probit...等 [軟體熟悉度]:中 ----------------------------------------------------------------------------- 我現在有數個檔案要merge out_11~out_15 out_21~out_25 . . . out_61~out_65 以此類推 想在marco之下用迴圈的方式進行合併 我的想法如下 %do i=1 %to 6; data q&i; merge out_&i1-out_&i5; run; %end; 可是會出現 "syntax error expecting one of the following" 這樣的警告 不知道有沒有高手可以為我解惑呢? 謝謝。 -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 120.126.130.3

10/15 17:57, , 1F
out_&i.1-out_&i.5
10/15 17:57, 1F
文章代碼(AID): #1INDrcdw (Statistics)
文章代碼(AID): #1INDrcdw (Statistics)