<?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: How to Use Proc Sort Using Macros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114839#M259245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question to start with Murray.&lt;/P&gt;&lt;P&gt;Have seen a lot of people starting to learn SAS calling everything a "macro".&amp;nbsp; &lt;/P&gt;&lt;P&gt;Not been aware of te datastep / procedures / sas-macro / scl , metadata and may other artifacts used ad code/programming tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Aug 2013 10:29:16 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2013-08-19T10:29:16Z</dc:date>
    <item>
      <title>How to Use Proc Sort Using Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114837#M259243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one help me Out that how to use Proc sort in macros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 08:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114837#M259243</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2013-08-19T08:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Proc Sort Using Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114838#M259244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A macro that will sort a dataset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %Macro sorter(dsn, var);&lt;/P&gt;&lt;P&gt;proc sort data=&amp;amp;dsn.;&lt;/P&gt;&lt;P&gt;by &amp;amp;var.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%sorter(sample_dataset, age);&lt;/P&gt;&lt;P&gt;will sort sample_dataset by the variable age.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 09:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114838#M259244</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-19T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Proc Sort Using Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114839#M259245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question to start with Murray.&lt;/P&gt;&lt;P&gt;Have seen a lot of people starting to learn SAS calling everything a "macro".&amp;nbsp; &lt;/P&gt;&lt;P&gt;Not been aware of te datastep / procedures / sas-macro / scl , metadata and may other artifacts used ad code/programming tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 10:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114839#M259245</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-08-19T10:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Proc Sort Using Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114840#M259246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you murray&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain me how it works, because i new to sas macros&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 07:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114840#M259246</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2013-08-20T07:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Proc Sort Using Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114841#M259247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS macros is a whole programming language, and teaching a such is not suitable in a forum.&lt;/P&gt;&lt;P&gt;I suggest that you spend some time with the documentation, and potentially read some papers (i.e. from SAS Global Forum), and potentially attend to some training (physical or online).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 07:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114841#M259247</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-08-20T07:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Proc Sort Using Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114842#M259248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Macros allow you to automatically submit programs based on arbitrary requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If I have to sort 100 datasets in the same way, to save time I would write the 'sorter' macro as above, and call it with reference to my 100 datasets, this saves a lot of copying and pasting, as the macro prossesor does that for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For a rounded education on macros I would reccomend the &lt;SPAN id="btAsinTitle"&gt;SAS Certification Prep Guide:: Advanced Programming for SAS 9, Third Edition. About a thir dof this book looks exclusively at the way macros work. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 09:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114842#M259248</guid>
      <dc:creator>Murray_Court</dc:creator>
      <dc:date>2013-08-20T09:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use Proc Sort Using Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114843#M259249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 09:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Use-Proc-Sort-Using-Macros/m-p/114843#M259249</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2013-08-20T09:48:41Z</dc:date>
    </item>
  </channel>
</rss>

