<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic %unquoting a macro variable containing a directory path in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/unquoting-a-macro-variable-containing-a-directory-path/m-p/495411#M130741</link>
    <description>&lt;P&gt;There are quite a few questions about unquoting but none provide a solution for my problem.&amp;nbsp; I have a macro variable containing a directory string that is created in the SAS desktop environment and passed to a server via %syslput.&amp;nbsp; %syslput requires that the macro variable be %bquoted or else it will return an 'unrecognized options' error because of the / delimiters.&amp;nbsp; That's ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the macro variable in the server environment in an X-Command&amp;nbsp;it works just fine but&amp;nbsp;SYMBOLGEN returns the "Some characters in the above value which were subject to macro quoting have been unquoted for printing." message.&amp;nbsp; Using the %unquote function doesn't make the message go away.&amp;nbsp; I'm wondering how to make it go away, other than use NOSYMBOLGEN.&amp;nbsp; This does not run inside a macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let dirFieldList=/risk/data/201808/filelist.txt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;%syslput&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; dirFieldList=&lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;%bquote&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;(&amp;amp;dirFieldList);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#9b1e31" face="SAS Monospace" size="2"&gt;RSUBMIT&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#9b1e31" face="SAS Monospace" size="2"&gt;options&lt;/FONT&gt; &lt;FONT color="#9b1e31" face="SAS Monospace" size="2"&gt;symbolgen&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#9b1e31" face="SAS Monospace" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; rm &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;%unquote&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;(&amp;amp;dirFileList);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&amp;nbsp;** Returns same message when &amp;amp;dirFileList is not inside " " ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;496 options symbolgen;&amp;nbsp;&lt;/P&gt;&lt;P&gt;497&lt;/P&gt;&lt;P&gt;498 x rm %unquote("&amp;amp;dirFileList");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable DIRFILELIST resolves to /sasapp/credrisk/wfdscrdm/filelist.txt&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have been unquoted for printing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 17:17:50 GMT</pubDate>
    <dc:creator>bentleyj1</dc:creator>
    <dc:date>2018-09-13T17:17:50Z</dc:date>
    <item>
      <title>%unquoting a macro variable containing a directory path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unquoting-a-macro-variable-containing-a-directory-path/m-p/495411#M130741</link>
      <description>&lt;P&gt;There are quite a few questions about unquoting but none provide a solution for my problem.&amp;nbsp; I have a macro variable containing a directory string that is created in the SAS desktop environment and passed to a server via %syslput.&amp;nbsp; %syslput requires that the macro variable be %bquoted or else it will return an 'unrecognized options' error because of the / delimiters.&amp;nbsp; That's ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the macro variable in the server environment in an X-Command&amp;nbsp;it works just fine but&amp;nbsp;SYMBOLGEN returns the "Some characters in the above value which were subject to macro quoting have been unquoted for printing." message.&amp;nbsp; Using the %unquote function doesn't make the message go away.&amp;nbsp; I'm wondering how to make it go away, other than use NOSYMBOLGEN.&amp;nbsp; This does not run inside a macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let dirFieldList=/risk/data/201808/filelist.txt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;%syslput&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; dirFieldList=&lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;%bquote&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;(&amp;amp;dirFieldList);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#9b1e31" face="SAS Monospace" size="2"&gt;RSUBMIT&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#9b1e31" face="SAS Monospace" size="2"&gt;options&lt;/FONT&gt; &lt;FONT color="#9b1e31" face="SAS Monospace" size="2"&gt;symbolgen&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#9b1e31" face="SAS Monospace" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; rm &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;%unquote&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;(&amp;amp;dirFileList);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&amp;nbsp;** Returns same message when &amp;amp;dirFileList is not inside " " ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;496 options symbolgen;&amp;nbsp;&lt;/P&gt;&lt;P&gt;497&lt;/P&gt;&lt;P&gt;498 x rm %unquote("&amp;amp;dirFileList");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable DIRFILELIST resolves to /sasapp/credrisk/wfdscrdm/filelist.txt&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have been unquoted for printing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 17:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unquoting-a-macro-variable-containing-a-directory-path/m-p/495411#M130741</guid>
      <dc:creator>bentleyj1</dc:creator>
      <dc:date>2018-09-13T17:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: %unquoting a macro variable containing a directory path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unquoting-a-macro-variable-containing-a-directory-path/m-p/495432#M130750</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I don't know if you can selectively suppress SYMBOLGEN messages, but perhaps a different method would work - system environment variables.&amp;nbsp; Untested code:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;RSUBMIT;

options symbolgen;
options set=DIRFILELIST '/risk/data/201808/filelist.txt';

x 'rm $DIRFILELIST';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unquoting-a-macro-variable-containing-a-directory-path/m-p/495432#M130750</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-09-13T19:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: %unquoting a macro variable containing a directory path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unquoting-a-macro-variable-containing-a-directory-path/m-p/495463#M130761</link>
      <description>&lt;P&gt;Thanks Vince!&amp;nbsp; Yeah, this could work for me.&amp;nbsp; I'll give it a spin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to get rid of the message.&amp;nbsp; Unexpected notes and messages make some people nervous, and I don't like them in my logs even when they're harmless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unquoting-a-macro-variable-containing-a-directory-path/m-p/495463#M130761</guid>
      <dc:creator>bentleyj1</dc:creator>
      <dc:date>2018-09-13T19:09:10Z</dc:date>
    </item>
  </channel>
</rss>

