[程式] SAS的if...then do和proc xxx的問題

看板Statistics作者時間14年前 (2012/02/14 15:59), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
[軟體程式類別]:SAS [程式問題]:資料處理 [軟體熟悉度]: 低(1~3個月) [問題敘述]: 用SAS在線上資料庫抓資料, 希望遇到樣本數不等於200時就不下載, 所以寫了 if &(總樣本數變數)=200 then do; proc download data=資料名稱 out=位置和檔案名稱; run; end; 可是這樣就算樣本數不等於200也還是下載了。 不知道是不是因為if then do後面不能加proc的程序呢? log的錯誤寫說:LINE and COLUMN cannot be determined 還有180-322: Statement is not valid or it is used out of proper order 謝謝喔:) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.64.143.196

02/14 16:52, , 1F
if then do 不是proc 可以用的語法
02/14 16:52, 1F

02/14 18:11, , 2F
了解,謝謝你:D
02/14 18:11, 2F
文章代碼(AID): #1FEXHXZy (Statistics)