[程式] sas合併問題
------------------------------------------------------------------------
[軟體程式類別]: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
10/15 17:57, 1F
討論串 (同標題文章)