<?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: help w macro in combo w proc report? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/help-w-macro-in-combo-w-proc-report/m-p/777942#M31481</link>
    <description>&lt;P&gt;See Step 5/6 in the second link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UCLA introductory tutorial on macro variables and macros&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/seminars/sas-macros-introduction/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/seminars/sas-macros-introduction/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Tutorial on converting a working program to a macro&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;This method is pretty robust and helps prevent errors and makes it much easier to debug your code. Obviously biased, because I wrote it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 15:35:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-11-02T15:35:59Z</dc:date>
    <item>
      <title>help w macro in combo w proc report?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-w-macro-in-combo-w-proc-report/m-p/777820#M31478</link>
      <description>&lt;P&gt;I have 3 proc report statements that I need to run 25 times to get my desired result (one time for each "grantee"). I know there is a simple way to do this with a macro(?), but my experience with macros is limited and I'm struggling.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to run the following reports 25 times (1 for each value of the variable "grantee") - i.e., run the reports through once on a subset of data where grantee =grantee1, then run it through again where grantee=grantee2, etc. I have it set up in the code below with a %let statement - this works when i type the grantee name in, one by one, and run it 25 times.&amp;nbsp; I'm sure there's a faster way where it automatically runs through each value of grantee without having to change the %let statement. Any advice? (I feel like i'm missing something obvious and simple - thank you in advance!)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 06:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-w-macro-in-combo-w-proc-report/m-p/777820#M31478</guid>
      <dc:creator>LockieFerguson</dc:creator>
      <dc:date>2021-11-02T06:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: help w macro in combo w proc report?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-w-macro-in-combo-w-proc-report/m-p/777822#M31479</link>
      <description>&lt;P&gt;What keeps you from using grantee as a group column and insert page breaks for group changes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS please post your code for one grantee, and give us a simple example of your data for testing. Post it as a data step with datalines.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 06:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-w-macro-in-combo-w-proc-report/m-p/777822#M31479</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-02T06:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: help w macro in combo w proc report?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/help-w-macro-in-combo-w-proc-report/m-p/777942#M31481</link>
      <description>&lt;P&gt;See Step 5/6 in the second link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UCLA introductory tutorial on macro variables and macros&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/seminars/sas-macros-introduction/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/seminars/sas-macros-introduction/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Tutorial on converting a working program to a macro&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;This method is pretty robust and helps prevent errors and makes it much easier to debug your code. Obviously biased, because I wrote it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 15:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/help-w-macro-in-combo-w-proc-report/m-p/777942#M31481</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-02T15:35:59Z</dc:date>
    </item>
  </channel>
</rss>

