<?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: proc report by group and single title in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755591#M238484</link>
    <description>&lt;P&gt;I'm trying to convince customer to update the M1 since almost 4 years...but still here &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The code is quite simple&lt;/P&gt;
&lt;PRE&gt;proc sort data=sashelp.class out=TEST;
    by SEX;
run;

title "Some title referred to M and F";

proc report data=TEST missing;  
    by SEX;
    columns NAME AGE;
    define NAME / group;
    define AGE / mean;
run;&lt;/PRE&gt;
&lt;P&gt;Same code is used to produce an xml/xls or a pdf, so the solution should be not tightened to the output. For now just write some macro code that get all the by group value and itearate over it...&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jul 2021 10:47:39 GMT</pubDate>
    <dc:creator>LukeL</dc:creator>
    <dc:date>2021-07-21T10:47:39Z</dc:date>
    <item>
      <title>proc report by group and single title</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755576#M238477</link>
      <description>&lt;P&gt;Hi all, I have a problem with proc report.&lt;/P&gt;
&lt;P&gt;I'm writing an excel (tagset.excelxp, on 9.4M1) and have on a same sheet three tables generated by a proc report with a by.&lt;/P&gt;
&lt;P&gt;I would like to have just one title for those tables, but the report with the by group write it for each one (either with embed_titles* options enabled.&lt;/P&gt;
&lt;P&gt;Is there a way to tell the proc report to write titles only once, or the only way is to write each table manually?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 08:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755576#M238477</guid>
      <dc:creator>LukeL</dc:creator>
      <dc:date>2021-07-21T08:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc report by group and single title</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755577#M238478</link>
      <description>&lt;P&gt;Could you write some ods text and remove the titles?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 08:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755577#M238478</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-21T08:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc report by group and single title</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755578#M238479</link>
      <description>&lt;P&gt;Hi, as far as I know, excelxp does not support ods text, isn't it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, a way to force the title output would be good, since I could put the title, force it, then delete the title and make the report...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 08:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755578#M238479</guid>
      <dc:creator>LukeL</dc:creator>
      <dc:date>2021-07-21T08:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc report by group and single title</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755589#M238483</link>
      <description>&lt;P&gt;With tagset.excelxp you don't create excel-files but xml-files that can be read by excel. Unfortunately switching to ods excel is no option, because you are using an old version of 9.4, upgrading to at least m5 is highly recommended.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to post the code you are using, would make it so much easier to suggest something useful.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 10:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755589#M238483</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-21T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc report by group and single title</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755591#M238484</link>
      <description>&lt;P&gt;I'm trying to convince customer to update the M1 since almost 4 years...but still here &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The code is quite simple&lt;/P&gt;
&lt;PRE&gt;proc sort data=sashelp.class out=TEST;
    by SEX;
run;

title "Some title referred to M and F";

proc report data=TEST missing;  
    by SEX;
    columns NAME AGE;
    define NAME / group;
    define AGE / mean;
run;&lt;/PRE&gt;
&lt;P&gt;Same code is used to produce an xml/xls or a pdf, so the solution should be not tightened to the output. For now just write some macro code that get all the by group value and itearate over it...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 10:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755591#M238484</guid>
      <dc:creator>LukeL</dc:creator>
      <dc:date>2021-07-21T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc report by group and single title</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755719#M238532</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; TAGSETS.EXCELXP does have an Embed_Titles_Once suboption, but it did not work for me with your PROC REPORT. This Tech Support note explains that the option is problematic: &lt;A href="https://support.sas.com/kb/46/620.html" target="_blank"&gt;https://support.sas.com/kb/46/620.html&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; However, when I tried Embed_Titles_Once with ODS EXCEL, that suboption worked for me with a version of your code. I created a subset of the sorted data to make everything fit in one screen shot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1626891439619.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61506i3571A2F77471697B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1626891439619.png" alt="Cynthia_sas_0-1626891439619.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I wasn't sure what you wanted, but asking for the mean AGE for every name didn't make sense, unless you wanted to see the Overall Mean at the bottom of the list for each group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 18:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-by-group-and-single-title/m-p/755719#M238532</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-07-21T18:20:02Z</dc:date>
    </item>
  </channel>
</rss>

