<?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 Variable in Proc Tabulate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/228984#M308157</link>
    <description>&lt;P&gt;You have a couple of relatively simple choices (no macro language needed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) Sort your data by this GROUP variable, and run a single PROC TABULATE adding the statement BY GROUP;&lt;/P&gt;&lt;P&gt;(2) If your table is two-dimensional, add a third dimension which would be GROUP.&amp;nbsp; For this to be the paging dimension of the table, it has to appear first:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tables GROUP, (row dimension), (column dimension);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2015 19:44:14 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2015-10-07T19:44:14Z</dc:date>
    <item>
      <title>Macro Variable in Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/228981#M308156</link>
      <description>&lt;P&gt;This is my first post here. I would like to create mutiple tables by using proc tabulate. I have 20 different names in the variable called 'group', and would like to create 20 tables for each of the group. I could restrict each group in WHERE statement within proc tabulate. But rather than write my codes 20 times, I'm wondering if there is a way to put macro in there. Appreciate any suggestions.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 19:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/228981#M308156</guid>
      <dc:creator>dlin</dc:creator>
      <dc:date>2015-10-07T19:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable in Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/228984#M308157</link>
      <description>&lt;P&gt;You have a couple of relatively simple choices (no macro language needed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) Sort your data by this GROUP variable, and run a single PROC TABULATE adding the statement BY GROUP;&lt;/P&gt;&lt;P&gt;(2) If your table is two-dimensional, add a third dimension which would be GROUP.&amp;nbsp; For this to be the paging dimension of the table, it has to appear first:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tables GROUP, (row dimension), (column dimension);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 19:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/228984#M308157</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-10-07T19:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable in Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/229002#M308158</link>
      <description>&lt;P&gt;Thank you so much! It provides me a new approach, but I kinda would like to gerenerate 20 tables seperately, because I'd like to export each table into one spreadsheet within one big excel workbook.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 20:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/229002#M308158</guid>
      <dc:creator>dlin</dc:creator>
      <dc:date>2015-10-07T20:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable in Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/229007#M308159</link>
      <description>Use the BY variable processing with ODS TAGSETS.EXCELXP - it will create each tab for you by default. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/excelxp_demo.html#data" target="_blank"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/excelxp_demo.html#data&lt;/A&gt;</description>
      <pubDate>Wed, 07 Oct 2015 20:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/229007#M308159</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-07T20:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable in Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/229010#M308160</link>
      <description>&lt;P&gt;Thank you! very helpful!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 20:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-in-Proc-Tabulate/m-p/229010#M308160</guid>
      <dc:creator>dlin</dc:creator>
      <dc:date>2015-10-07T20:40:42Z</dc:date>
    </item>
  </channel>
</rss>

