<?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 How to set the title quickly for proc means ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724755#M225033</link>
    <description>&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;I want to ask your experience about how to set the title quickly for the output of a proc mean. Because sometimes I run a lot of proc means and I need to know the name of the dataset it is about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, normally, I use the title statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have;
title "have";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Could you please let me know if there is any way to set the title for the output of proc means without typing the statement title and else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Mar 2021 05:48:30 GMT</pubDate>
    <dc:creator>Phil_NZ</dc:creator>
    <dc:date>2021-03-09T05:48:30Z</dc:date>
    <item>
      <title>How to set the title quickly for proc means ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724755#M225033</link>
      <description>&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;I want to ask your experience about how to set the title quickly for the output of a proc mean. Because sometimes I run a lot of proc means and I need to know the name of the dataset it is about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, normally, I use the title statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have;
title "have";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Could you please let me know if there is any way to set the title for the output of proc means without typing the statement title and else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 05:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724755#M225033</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-09T05:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the title quickly for proc means ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724758#M225034</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro Means (dataset = );

proc means data= &amp;amp;dataset;
title "&amp;amp;dataset";
run;

%mend Means;

%Means (dataset = Have);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724758#M225034</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-03-09T06:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the title quickly for proc means ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724761#M225037</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for the macro, but there would be some proc means I used different options (in one &lt;STRONG&gt;PROC MEAN&lt;/STRONG&gt; I may use mean, max, nmiss, n, in another &lt;STRONG&gt;PROC MEAN&lt;/STRONG&gt; I may use kurt&amp;nbsp; std&amp;nbsp; max min, and in some &lt;STRONG&gt;PROC MEAN&lt;/STRONG&gt;, I may just need one or two specific variables)&lt;/P&gt;
&lt;P&gt;So the macro cannot work in these case. But it is a very nice macro. I may adjust all the proc mean together to run the macro if there is no other solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks and warm regards.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724761#M225037</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-09T06:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the title quickly for proc means ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724764#M225039</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212695"&gt;@Phil_NZ&lt;/a&gt;&amp;nbsp; - You could enhance the macro to do different statistics by adding a stats parameter.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro Means (dataset = 
              ,stats_list = );

proc means data= &amp;amp;dataset &amp;amp;stats_list;
title "&amp;amp;dataset";
run;

%mend Means;

%Means (dataset = Have
        ,stats_list = mean min max);
%Means (dataset = Have2
        ,stats_list = n min max);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724764#M225039</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-03-09T06:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the title quickly for proc means ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724786#M225048</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your insightful suggestion!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 09:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-the-title-quickly-for-proc-means/m-p/724786#M225048</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-09T09:08:53Z</dc:date>
    </item>
  </channel>
</rss>

