<?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 Re: do NOT resolve this macro! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17134#M2449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't say how you are writing the text file. If using PUT statements I would suspect something that should be quoted isn't. The other is the difference between "%somemacrotext" and '%somemacrotext' where the first will attempt to resolve and the second doesn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2011 17:51:31 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2011-12-19T17:51:31Z</dc:date>
    <item>
      <title>do NOT resolve this macro!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17131#M2446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using SAS to write SAS code to a external dataset, which will later be brougt in by using a %include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAS code being written contains macro calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was very surprised to find that SAS was trying to resolve the macro call as I was writing it to the external file.&amp;nbsp; Obviously not the ime I want this to occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I prevent SAS from trying to resolve these macro calls while I am writing the code to the external file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Dec 2011 22:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17131#M2446</guid>
      <dc:creator>steve_citi</dc:creator>
      <dc:date>2011-12-18T22:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: do NOT resolve this macro!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17132#M2447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a sample of the code that's giving you problems?&amp;nbsp; This code writes SAS macro code to an external text file, and doesn't resolve until the later %INCLUDE.&lt;/P&gt;&lt;PRE&gt; 
data _null_;
&amp;nbsp;&amp;nbsp; file 'test.txt';
&amp;nbsp;&amp;nbsp; put '%PUT NOTE: The date is %sysfunc(today(),mmddyy10.);';
run;
/* Open and read the text file - the macro code is not yet resolved... */

%include 'test.txt';
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 02:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17132#M2447</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2011-12-19T02:29:49Z</dc:date>
    </item>
    <item>
      <title>do NOT resolve this macro!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17133#M2448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or You can turn Macro language off before starting SAS by using &lt;/P&gt;&lt;P&gt; options nomacro;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS option MACRO is valid only at startup of the SAS System or startup of a SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; process. The SAS option is ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is to use macro quote functions to mask these maro variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 03:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17133#M2448</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-12-19T03:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: do NOT resolve this macro!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17134#M2449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't say how you are writing the text file. If using PUT statements I would suspect something that should be quoted isn't. The other is the difference between "%somemacrotext" and '%somemacrotext' where the first will attempt to resolve and the second doesn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 17:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17134#M2449</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-12-19T17:51:31Z</dc:date>
    </item>
    <item>
      <title>do NOT resolve this macro!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17135#M2450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This certainly helped my case &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 13:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-NOT-resolve-this-macro/m-p/17135#M2450</guid>
      <dc:creator>Saugata</dc:creator>
      <dc:date>2012-01-10T13:37:03Z</dc:date>
    </item>
  </channel>
</rss>

