<?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 Will %superq also mask quotes ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Will-superq-also-mask-quotes/m-p/429546#M106102</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm reading zipfiles in a looped macro. I'm using this right now. It works.&lt;/P&gt;&lt;P&gt;But can I omit the %bquote to prevent the code from giving error messages on quotes ?&lt;/P&gt;&lt;P&gt;In other words : Does %superq also mask quotes ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;filename targzip ZIP &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"%bquote(%superq(targdir)/%superq(zname&amp;amp;i))"&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;B&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2018 06:38:52 GMT</pubDate>
    <dc:creator>Billybob73</dc:creator>
    <dc:date>2018-01-22T06:38:52Z</dc:date>
    <item>
      <title>Will %superq also mask quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Will-superq-also-mask-quotes/m-p/429546#M106102</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm reading zipfiles in a looped macro. I'm using this right now. It works.&lt;/P&gt;&lt;P&gt;But can I omit the %bquote to prevent the code from giving error messages on quotes ?&lt;/P&gt;&lt;P&gt;In other words : Does %superq also mask quotes ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;filename targzip ZIP &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"%bquote(%superq(targdir)/%superq(zname&amp;amp;i))"&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;B&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 06:38:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Will-superq-also-mask-quotes/m-p/429546#M106102</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-01-22T06:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Will %superq also mask quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Will-superq-also-mask-quotes/m-p/429560#M106108</link>
      <description>&lt;P&gt;Yes, as it says in the manual:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV class="xis-paragraph"&gt;The %SUPERQ function returns the value of a macro variable without attempting to resolve any macros or macro variable references in the value. %SUPERQ masks the following special characters and mnemonic operators:&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV class="xis-codeBlock"&gt;&lt;BLOCKQUOTE&gt;&lt;PRE class="xis-code"&gt;&amp;amp; % ' " ( ) + − * / &amp;lt; &amp;gt; = ¬ ^ ~ ; , #  blank
AND OR NOT EQ NE LE LT GE GT IN&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Jan 2018 08:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Will-superq-also-mask-quotes/m-p/429560#M106108</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-01-22T08:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Will %superq also mask quotes ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Will-superq-also-mask-quotes/m-p/429563#M106109</link>
      <description>&lt;P&gt;Why would you need to do any of that?&amp;nbsp; The only reason I can think of is that your filenames contain special characters such as quotes, which is really bad practice on any system.&amp;nbsp; Following some simple naming convention:&lt;/P&gt;
&lt;PRE&gt;filename tagzip zip "targdir/&amp;amp;name&amp;amp;i.";&lt;/PRE&gt;
&lt;P&gt;Should be sufficient.&amp;nbsp; Also note, you can get rid of the whole macro looping part you have around this code by using a datastep:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set loop;  /* This is the dataset with all the names of the zips */
  call execute(cats('filename targzip zip "targdir/',name,'";'));
run;&lt;/PRE&gt;
&lt;P&gt;You can put other call executes on there to do further processing too.&amp;nbsp; This is far simpler than lists of values and do loops and all that.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Will-superq-also-mask-quotes/m-p/429563#M106109</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-22T09:09:56Z</dc:date>
    </item>
  </channel>
</rss>

