<?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: Procedure to run SAS macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103781#M21661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code looks fine other than that the data step is missing a RUN; statement to tell SAS that you are done typing the code.&lt;/P&gt;&lt;P&gt;Add a run statement after the last of the macro calls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2012 13:01:52 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-05-04T13:01:52Z</dc:date>
    <item>
      <title>Procedure to run SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103780#M21660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to SAS macro. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the correct way to run a SAS macro? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I first of all run the macro definition first?(highlight from %MACRO all the way to %MEND), then I go to the main program to call it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just call from the main program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the code: (this is after an Excel file importation). Attached file is the Enterprise Guide file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 12:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103780#M21660</guid>
      <dc:creator>SeekYourWay</dc:creator>
      <dc:date>2012-05-04T12:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to run SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103781#M21661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code looks fine other than that the data step is missing a RUN; statement to tell SAS that you are done typing the code.&lt;/P&gt;&lt;P&gt;Add a run statement after the last of the macro calls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 13:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103781#M21661</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-05-04T13:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to run SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103782#M21662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro defnition does need to be "compiled" before use. This is typically done by executing the definition code. However if a macro is not changing and is used frequently you may want to investigate a macro AUTOCALL LIBRARY. This is basically a folder or directory that SAS will look iin if you attempt to execute an unknown macro call to find a macro by that name an then compile as needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 14:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103782#M21662</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-05-04T14:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to run SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103783#M21663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks. I'm moving on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 14:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103783#M21663</guid>
      <dc:creator>SeekYourWay</dc:creator>
      <dc:date>2012-05-04T14:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to run SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103784#M21664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks. I'm moving on. Will look into the autocall sometimes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 14:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Procedure-to-run-SAS-macro/m-p/103784#M21664</guid>
      <dc:creator>SeekYourWay</dc:creator>
      <dc:date>2012-05-04T14:59:10Z</dc:date>
    </item>
  </channel>
</rss>

