推 AeiCheng: set 那行改成 10/27 11:29
→ AeiCheng: set %do i = 1 %to &amount. ; slope&i. 10/27 11:29
→ AeiCheng: %end;; 10/27 11:29
→ AeiCheng: 試試
感謝 不過測試了之後
log 出現error:data does not exist
slope1_5 一樣 no observations 10/27 11:29
※ 編輯: zxcccc (60.250.75.217 臺灣), 10/27/2021 11:59:58
推 west1996: 照你的第二個寫法,把"data slope1_5;set"這幾個字搬到 10/27 13:26
→ west1996: %do之前,把";run;"放到%end;之後,整個%do迴圈跟%if判 10/27 13:26
→ west1996: 斷式只要包“slope&j"這七個字母就好 10/27 13:26
感謝 有成功了
※ 編輯: zxcccc (60.250.75.217 臺灣), 10/27/2021 13:50:33