Special Characters in SAS

2019-07-14 18:28发布

问题:

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;

as a result of this , it comment what is come next to * .

回答1:

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