[程式] sas macro問題

看板Statistics作者 (wudistan)時間6年前 (2018/05/24 19:16), 編輯推噓3(304)
留言7則, 6人參與, 6年前最新討論串1/1
[程式] Sas macro [軟體程式類]: [程式問題]: macro and proc tabulate [軟體熟悉度]: 新手 [問題敘述]: macro包proc tabulate的where裡的in 無法跑,如以下範例,感謝各位的幫助,謝謝 [程式範例]: %Macro test1(var1); proc tabulate where age_fg in ( &var1.); . . . %mend test1; %let AA='A,'B'; %test1(&AA.); -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 49.214.86.33 ※ 文章網址: https://www.ptt.cc/bbs/Statistics/M.1527160578.A.D68.html

05/24 22:41, 6年前 , 1F
無法跑是怎樣無法跑?可否給個log?
05/24 22:41, 1F

05/25 09:33, 6年前 , 2F
出現syntax error,expecting one of following:有引號
05/25 09:33, 2F

05/25 09:33, 6年前 , 3F
的字串,數值常數,日期時間常數,遺漏值
05/25 09:33, 3F

05/25 11:46, 6年前 , 4F
AA='A,'B'; 改成AA='A,B';
05/25 11:46, 4F

05/25 17:41, 6年前 , 5F
'A,'B' 的A右邊少個引號?
05/25 17:41, 5F

05/25 20:12, 6年前 , 6F
Try %str(“a”,”b”)
05/25 20:12, 6F

05/26 21:59, 6年前 , 7F
%test1(%bquote(&AA.))
05/26 21:59, 7F
文章代碼(AID): #1R1fy2re (Statistics)