SAS 中的特殊字符 [英] Special Characters in SAS
本文介绍了SAS 中的特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我试图在 SAS 语句中使用 * 特殊字符,但它认为它是注释字符,所以有什么方法可以让我屏蔽它,以便将它用作特殊字符而不是注释字符.
HI , I'm trying to use * special character in SAS Statement but it see it as commenting character , so is there any method that allow me to mask it , as to use it as special character not as commenting character.
这是我试图在其中使用 * 的语句:
here is the statement that am trying to use * in it:
%let source=/home/sas/SASMR/Reports/*.pdf;
%let source=/home/sas/SASMR/Reports/*.pdf;
因此,它评论 * 旁边的内容.
as a result of this , it comment what is come next to * .
推荐答案
如果您只需要一个快速的解决方案,这对我有用.
If you just need a quick solution, this worked for me.
%let source=/home/sas/SASMR/Reports/%str(*).pdf;
%put &source;
/home/sas/SASMR/Reports/*.pdf
这篇关于SAS 中的特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文