<?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: %macro? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359700#M10811</link>
    <description>&lt;P&gt;I don't think that is the exact code is it. &amp;nbsp;The first:&lt;/P&gt;
&lt;P&gt;%including "file-specification"/source2;&lt;/P&gt;
&lt;P&gt;Is not correct, correct syntax is:&lt;/P&gt;
&lt;P&gt;%include "file-specification" / source2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This loads the given text file and inserts the text at the point of include.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other three are calls to user built macros. &amp;nbsp;As I am not on your system, can't see any of it, I cannot state anything other than that.&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 15:59:04 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-05-18T15:59:04Z</dc:date>
    <item>
      <title>%macro?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359690#M10809</link>
      <description>&lt;P&gt;Hi, all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw several codes written from previous programmer.&amp;nbsp; Could someone let&amp;nbsp;me know what they are refering to? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%including "file-specification"/source2;&lt;/P&gt;&lt;P&gt;%rename (uned., _3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%including "file-specification"/source2;&lt;/P&gt;&lt;P&gt;%state (uned., _4);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%including "file-specification"/source2;&lt;/P&gt;&lt;P&gt;%report (uned., _5);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 15:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359690#M10809</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-18T15:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: %macro?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359695#M10810</link>
      <description>&lt;P&gt;I specify the %including code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%including "\\test\_3_rename.sas"/source2;&lt;/P&gt;&lt;P&gt;%rename (uned., _3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%including "\\test\_4_state.sas"/source2;&lt;/P&gt;&lt;P&gt;%state (uned., _4);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%including "\\test\_5_report.sas"/source2;&lt;/P&gt;&lt;P&gt;%report (uned., _5);&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 15:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359695#M10810</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-18T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: %macro?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359700#M10811</link>
      <description>&lt;P&gt;I don't think that is the exact code is it. &amp;nbsp;The first:&lt;/P&gt;
&lt;P&gt;%including "file-specification"/source2;&lt;/P&gt;
&lt;P&gt;Is not correct, correct syntax is:&lt;/P&gt;
&lt;P&gt;%include "file-specification" / source2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This loads the given text file and inserts the text at the point of include.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other three are calls to user built macros. &amp;nbsp;As I am not on your system, can't see any of it, I cannot state anything other than that.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 15:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359700#M10811</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-18T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: %macro?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359701#M10812</link>
      <description>&lt;P&gt;You should post the real code you have questions about. "%including" is not valid SAS syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, %include tells SAS to fetch the file and place its contents where the %include was.&lt;/P&gt;
&lt;P&gt;The other lines seem to call macros from those files.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 16:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359701#M10812</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-18T16:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: %macro?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359703#M10813</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; I apologize my typo.&amp;nbsp; It's %include.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 16:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359703#M10813</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-18T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: %macro?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359706#M10814</link>
      <description>It is one way of using the macro calls (sas programs) which are located in some location and you want to use them in your current program. &lt;BR /&gt;&lt;BR /&gt;%include is used to refer to the location where the macro program is located and source2 causes the SAS log to show the source statements that are being included in your SAS program.&lt;BR /&gt;&lt;BR /&gt;%rename is the macro call which is being referred in the %include statement.&lt;BR /&gt;&lt;BR /&gt;But i wonder why the %include statemnet has the sas program name as _3_rename.sas and %macro call name is %rename I am expecting the %include should refer to the rename.sas programs file.</description>
      <pubDate>Thu, 18 May 2017 16:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359706#M10814</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-05-18T16:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: %macro?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359719#M10815</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12151"&gt;@Jagadishkatam&lt;/a&gt; wrote:&lt;BR /&gt;But i wonder why the %include statemnet has the sas program name as _3_rename.sas and %macro call name is %rename I am expecting the %include should refer to the rename.sas programs file.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12151"&gt;@Jagadishkatam&lt;/a&gt;&amp;nbsp;I've seen file naming conventions like that when they were used to indicate the Order that scipts or programs should be run. I'm not saying it's a good practice but I've seen that.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 17:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359719#M10815</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-18T17:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: %macro?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359732#M10816</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If %rename is the macro call which is being referred in the %include statement.&amp;nbsp; It shouldn't be use semicolom, it should be just&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%rename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I right?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 17:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359732#M10816</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-05-18T17:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: %macro?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359739#M10817</link>
      <description>you can always call macro calls either with or without semicolon</description>
      <pubDate>Thu, 18 May 2017 17:40:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/macro/m-p/359739#M10817</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-05-18T17:40:36Z</dc:date>
    </item>
  </channel>
</rss>

