<?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: Understanding a code snippet from a SAS macro in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Understanding-a-code-snippet-from-a-SAS-macro/m-p/178417#M13650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. Here is what it will do.&lt;/P&gt;&lt;P&gt;1) It will make a dataset name _NULL with one observation and one variable, FILENAME, with the value 'xxx_123'.&lt;/P&gt;&lt;P&gt;If the fileref AAA was defined before the data step then :&lt;/P&gt;&lt;P&gt;2A) it will be made empty since the data step writes nothing into it.&lt;/P&gt;&lt;P&gt;3A) it will then try to include the empty file as code and so nothing will happen.&lt;/P&gt;&lt;P&gt;4A) it will undefine the fileref AAA.&lt;/P&gt;&lt;P&gt;Otherwise&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2B)&amp;nbsp; it will create an empty file named aaa.dat in the current working directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3B)&amp;nbsp; it will try to include SAS statements from a file named aaa.sas.&amp;nbsp; Effect will vary based on whether such a file exists or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4B) it will get a warning trying to undefine the fileref AAA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 22:41:51 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2014-02-18T22:41:51Z</dc:date>
    <item>
      <title>Understanding a code snippet from a SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Understanding-a-code-snippet-from-a-SAS-macro/m-p/178416#M13649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this code snippet in our code base:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file aaa;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename = 'xxx_123' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;%include aaa;&lt;/P&gt;&lt;P&gt;filename aaa clear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this run the macro xxx_123.sas and store the output in aaa and then clear it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 22:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Understanding-a-code-snippet-from-a-SAS-macro/m-p/178416#M13649</guid>
      <dc:creator>eagles_dare13</dc:creator>
      <dc:date>2014-02-18T22:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding a code snippet from a SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Understanding-a-code-snippet-from-a-SAS-macro/m-p/178417#M13650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. Here is what it will do.&lt;/P&gt;&lt;P&gt;1) It will make a dataset name _NULL with one observation and one variable, FILENAME, with the value 'xxx_123'.&lt;/P&gt;&lt;P&gt;If the fileref AAA was defined before the data step then :&lt;/P&gt;&lt;P&gt;2A) it will be made empty since the data step writes nothing into it.&lt;/P&gt;&lt;P&gt;3A) it will then try to include the empty file as code and so nothing will happen.&lt;/P&gt;&lt;P&gt;4A) it will undefine the fileref AAA.&lt;/P&gt;&lt;P&gt;Otherwise&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2B)&amp;nbsp; it will create an empty file named aaa.dat in the current working directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3B)&amp;nbsp; it will try to include SAS statements from a file named aaa.sas.&amp;nbsp; Effect will vary based on whether such a file exists or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4B) it will get a warning trying to undefine the fileref AAA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 22:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Understanding-a-code-snippet-from-a-SAS-macro/m-p/178417#M13650</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-02-18T22:41:51Z</dc:date>
    </item>
  </channel>
</rss>

