<?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: GENERIC PROC SUMMARY MACRO in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580832#M165021</link>
    <description>&lt;P&gt;You mean something like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=&amp;amp;dsn;
    class &amp;amp;classvarnames;
    var &amp;amp;varnames;
    output out=&amp;amp;outdsn &amp;amp;statistics / autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Yes, I know that isn't truly a macro and &amp;amp;statistics doesn't exactly work, I'm simply asking if this is close to what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/494"&gt;@Sanjay_M&lt;/a&gt;&amp;nbsp;is asking for.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2019 14:53:49 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-08-13T14:53:49Z</dc:date>
    <item>
      <title>GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580820#M165017</link>
      <description>&lt;P&gt;Can someone direct me to any user written macros available that can generate PROC SUMMARY on the fly for multiple groups and multiple statistics by passing parameters to the macro like variable, group, stats needed&amp;nbsp;etc.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 14:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580820#M165017</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-08-13T14:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580824#M165018</link>
      <description>&lt;P&gt;Why would you want to complicate things with a macro? Just find a PROC SUMMARY online or here at the community and alter it. I'm sure that'll do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 14:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580824#M165018</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-08-13T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580828#M165020</link>
      <description>&lt;P&gt;The purpose is to create a macro and hand it over to business users who can execute and produce basic summaries by passing parameters&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 14:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580828#M165020</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-08-13T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580832#M165021</link>
      <description>&lt;P&gt;You mean something like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=&amp;amp;dsn;
    class &amp;amp;classvarnames;
    var &amp;amp;varnames;
    output out=&amp;amp;outdsn &amp;amp;statistics / autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Yes, I know that isn't truly a macro and &amp;amp;statistics doesn't exactly work, I'm simply asking if this is close to what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/494"&gt;@Sanjay_M&lt;/a&gt;&amp;nbsp;is asking for.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 14:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580832#M165021</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-13T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580843#M165025</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/494"&gt;@Sanjay_M&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The purpose is to create a macro and hand it over to business users who can execute and produce basic summaries by passing parameters&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Wouldn't it be more effective to teach them the GUI interface for SAS instead?&amp;nbsp;&lt;BR /&gt;The Tasks in SAS Studio or EG can do this, have relatively clear instructions on what goes where and have a point and click interface that's simple to use. The code generated is pretty clean as well, IMO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete_sas_studio.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31703iEF073D5CD7FE9C79/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete_sas_studio.png" alt="delete_sas_studio.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580843#M165025</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-13T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580844#M165026</link>
      <description>&lt;P&gt;And if you decide you really, really want a macro then you can build one pretty easily.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow the steps outlined in this post:&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If macros are totally new, read through this post first:&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/494"&gt;@Sanjay_M&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Can someone direct me to any user written macros available that can generate PROC SUMMARY on the fly for multiple groups and multiple statistics by passing parameters to the macro like variable, group, stats needed&amp;nbsp;etc.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580844#M165026</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-13T15:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580860#M165035</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/494"&gt;@Sanjay_M&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The purpose is to create a macro and hand it over to business users who can execute and produce basic summaries by passing parameters&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Wouldn't it be more effective to teach them the GUI interface for SAS instead?&amp;nbsp;&lt;BR /&gt;The Tasks in SAS Studio or EG can do this, have relatively clear instructions on what goes where and have a point and click interface that's simple to use. The code generated is pretty clean as well, IMO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete_sas_studio.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31703iEF073D5CD7FE9C79/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete_sas_studio.png" alt="delete_sas_studio.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the English language, we have a phrase "Please listen to reason". Here in the SAS communities it goes: "Please listen to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The GUI seems to me a much better solution to create a generic macro to call a SAS PROC. I mean, really, is there any particular salient difference between giving users a tool that requires them to type&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%summary(data=mydata,
classvars=class1 class2,
vars=x1 x2 x3, ...)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;compared to requiring the users to type&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=mydata;
    class class1 class2;
    var x1 x2 x3;
...
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580860#M165035</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-13T15:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580866#M165038</link>
      <description>&lt;P&gt;Thanks all.&lt;/P&gt;
&lt;P&gt;I'm building something on the lines of what PaigeMiller has posted.&lt;/P&gt;
&lt;P&gt;But considers, custom formats, preload formats etc.&lt;/P&gt;
&lt;P&gt;But thanks for the reply&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580866#M165038</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-08-13T15:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580874#M165042</link>
      <description>&lt;P&gt;You might want to look at some of the macro suites out there. Like Roland's Spectre system.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.datasavantconsulting.com/roland/Spectre/unistats.html" target="_blank"&gt;http://www.datasavantconsulting.com/roland/Spectre/unistats.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 16:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580874#M165042</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-13T16:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580875#M165043</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/494"&gt;@Sanjay_M&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks all.&lt;/P&gt;
&lt;P&gt;I'm building something on the lines of what PaigeMiller has posted.&lt;/P&gt;
&lt;P&gt;But considers, custom formats, preload formats etc.&lt;/P&gt;
&lt;P&gt;But thanks for the reply&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you saying the GUI doesn't support those options somehow? Which features are not supported?&lt;/P&gt;
&lt;P&gt;You can add them to the SAS Ballots for suggestions as additions.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 16:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580875#M165043</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-13T16:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580878#M165044</link>
      <description>Tom, do you know if anyone is moving those macro's somewhere else? I'm surprised that site is still up and working.</description>
      <pubDate>Tue, 13 Aug 2019 16:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580878#M165044</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-13T16:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580889#M165049</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/494"&gt;@Sanjay_M&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks all.&lt;/P&gt;
&lt;P&gt;I'm building something on the lines of what PaigeMiller has posted.&lt;/P&gt;
&lt;P&gt;But considers, custom formats, preload formats etc.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why not just teach the PROC SUMMARY syntax, instead of the Macro syntax (for a macro which doesn't yet exist)??&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 17:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580889#M165049</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-13T17:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580890#M165050</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The GUI is pretty good, but it is just a requirement that needs coded up.&lt;/P&gt;
&lt;P&gt;I am also considering parameterising formats to preload.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 17:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580890#M165050</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-08-13T17:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: GENERIC PROC SUMMARY MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580895#M165052</link>
      <description>&lt;P&gt;I agree with you. With the generic macro you could only do basic things easily, unless&amp;nbsp;one writes up a 10 page code that is over complicated and hard to follow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to keep the macro simple, but stress that the tool needs to be used.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 17:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENERIC-PROC-SUMMARY-MACRO/m-p/580895#M165052</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-08-13T17:08:58Z</dc:date>
    </item>
  </channel>
</rss>

