title: Macro variable resolving with special Characters
body: <p>I am trying to pass a macro variable created by Call symputx that has a special character(an underscore), however not able to succeed, here is the code I wrote.</p>
  
  <pre><code>data _null_; 
      call symputx('name', scan( "&amp;table" ,2,'.')); run; 
  
  %let location= E:\drives\Monthly; 
  
  Proc export data=file
  outfile= "&amp;location.\&amp;name..txt"  dbms=dlm replace; 
  run;
  </code></pre>
  
  <p>When the NAME macro variable has no special characters, the code executes perfectly, however it shows authentification failure or doesnt resolve the macro or any other error. </p>
  
  <p>I am missing to mask the special chars, how I do proceed here? </p>
  
  <p>So here are the details: (added from comment by @Richard)</p>
  
  <pre><code>%let location=%nrstr(E:\Reports\Monthly\Updates (NEW)_UPPDATE_LIST);
  %let Name = %nrstr(Table_20);
  Proc export dbms=dlm 
    data=Newfile 
    replace
    outfile= "&amp;location=.\&amp;Name..txt" ;
  run;
  </code></pre>
  
  <p>When I have underscore in the table name it gives this Error </p>
  
  <pre><code>ERROR: Insufficient authorization to access
  E:\Reports\Monthly\Updates (NEW)_UPPDATE_LIST
  </code></pre>
  
  <p>I will have to add one thing is that I am using %include statement to run the program. </p>