<?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: Transpose and sum in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/572961#M161718</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; serv1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SERV_MTH FITM PAIDSERV;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;201905 97009 4&lt;/P&gt;&lt;P&gt;201905 97010 21&lt;/P&gt;&lt;P&gt;201905 97011 51&lt;/P&gt;&lt;P&gt;201906 97009 17&lt;/P&gt;&lt;P&gt;201906 97010 67&lt;/P&gt;&lt;P&gt;201906 97011 157&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;transpose&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=serv1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;prefix&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=FITM &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=serv2 (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=_name_) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; serv_mth;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; paidserv;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;id&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; fitm;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Note: desired result&lt;/P&gt;&lt;P&gt;SERV_MTH FITM97009 FITM97010 FITM97011&lt;/P&gt;&lt;P&gt;201905 4 21 51&lt;/P&gt;&lt;P&gt;201906 17 67 157&lt;/P&gt;&lt;P&gt;Total 21 88 208&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;*Wrong code;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;tabulate&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=serv1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=serv3;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; serv_mth fitm;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; paidserv;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; serv_mth,fitm ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Cynthia, the above are the codes. thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 22:19:37 GMT</pubDate>
    <dc:creator>pensarchem</dc:creator>
    <dc:date>2019-07-11T22:19:37Z</dc:date>
    <item>
      <title>Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571278#M161145</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp; the below is the data set, how can I transpose and add the total in the bottom?&amp;nbsp; thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SERV_MTH&amp;nbsp;FITM&amp;nbsp;PAIDSERV&lt;BR /&gt;201905&amp;nbsp;97009&amp;nbsp;4&lt;BR /&gt;201905&amp;nbsp;97010&amp;nbsp;21&lt;BR /&gt;201905&amp;nbsp;97011&amp;nbsp;51&lt;BR /&gt;201906&amp;nbsp;97009&amp;nbsp;17&lt;BR /&gt;201906&amp;nbsp;97010&amp;nbsp;67&lt;BR /&gt;201906&amp;nbsp;97011&amp;nbsp;157&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After transpose:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SERV_MTH&amp;nbsp; 97009&amp;nbsp; 97010&amp;nbsp; 97011&lt;BR /&gt;201905&amp;nbsp;4&amp;nbsp;21&amp;nbsp;51&lt;BR /&gt;201906&amp;nbsp;17&amp;nbsp;67&amp;nbsp;157&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I add Total as :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SERV_MTH&amp;nbsp; 97009&amp;nbsp; 97010&amp;nbsp; 97011&lt;BR /&gt;201905&amp;nbsp;4&amp;nbsp;21&amp;nbsp;51&lt;BR /&gt;201906&amp;nbsp;17&amp;nbsp;67&amp;nbsp;157&lt;/P&gt;&lt;P&gt;Total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21 88 208&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 20:10:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571278#M161145</guid>
      <dc:creator>pensarchem</dc:creator>
      <dc:date>2019-07-04T20:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571279#M161146</link>
      <description>Whats your final purpose? Putting it into a report, excel, pdf, data set? Usually totals are only added at the final reporting stage.</description>
      <pubDate>Thu, 04 Jul 2019 20:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571279#M161146</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-04T20:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571280#M161147</link>
      <description>&lt;P&gt;yes, in the end, ODS to excel.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 20:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571280#M161147</guid>
      <dc:creator>pensarchem</dc:creator>
      <dc:date>2019-07-04T20:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571282#M161148</link>
      <description>I would suggest PROC PRINT with SUM statement or using PROC TABULATE or REPORT on your original data set and skipping the transpose entirely. The results can be piped directly to Excel.</description>
      <pubDate>Thu, 04 Jul 2019 20:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571282#M161148</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-04T20:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571286#M161151</link>
      <description>&lt;P&gt;Tried a few times, got stuck. Could you share some lights?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 20:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571286#M161151</guid>
      <dc:creator>pensarchem</dc:creator>
      <dc:date>2019-07-04T20:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571287#M161152</link>
      <description>Sure, show what you tried and I'll be happy to show you what/where you need to change things &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 04 Jul 2019 21:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571287#M161152</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-04T21:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571295#M161153</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I agree with Reeza on the recommendation for either PROC TABULATE or PROC REPORT. Given the data structure that you show, PROC PRINT will not make columns for the FIT_M variable values, as you show. But it is easily done with PROC TABULATE or PROC REPORT. There have been many previous forum postings on this. I do recommend showing the code that you've tried and explaining whether you would use ODS CSV, ODS TAGSETS.EXCELXP or ODS EXCEL to get the output report from SAS into Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 22:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/571295#M161153</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-07-04T22:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/572798#M161663</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Thanks Reeza and Cynthia for helping out.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;In the beginning, I used the dumb method.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;1, proc sql,&amp;nbsp; create table to&amp;nbsp; sum for the data,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;2, change the format of&amp;nbsp;serv_mth to CHAR;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;3, proc sql&amp;nbsp; UNION two tables together.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;In the end, I used the better way, because we always need to export the file as exel.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;In ODS, I directly use, (I did change serv_mth from NUM to CHAR)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;rbreak&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;after&lt;/FONT&gt; / &lt;FONT color="#0000ff"&gt;summarize&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;style&lt;/FONT&gt;={foreground=#&lt;STRONG&gt;&lt;FONT color="#008080"&gt;000000&lt;/FONT&gt;&lt;/STRONG&gt; background=#C0C0C0 font_weight=bold};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;compute&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;after&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;calyear = &lt;FONT color="#800080"&gt;'Total'&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;endcomp&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;The reason I did not use proc report or tabulate is they always give me extra cells, but I don't know how to delete them.&amp;nbsp; We do have strict requirement of formatting.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/572798#M161663</guid>
      <dc:creator>pensarchem</dc:creator>
      <dc:date>2019-07-11T15:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/572893#M161692</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't know what you mean by "extra cells". You have a lot of control over both TABULATE and REPORT. Without data or code, it is hard for anyone to really understand what you mean.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 19:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/572893#M161692</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-07-11T19:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/572961#M161718</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; serv1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SERV_MTH FITM PAIDSERV;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;201905 97009 4&lt;/P&gt;&lt;P&gt;201905 97010 21&lt;/P&gt;&lt;P&gt;201905 97011 51&lt;/P&gt;&lt;P&gt;201906 97009 17&lt;/P&gt;&lt;P&gt;201906 97010 67&lt;/P&gt;&lt;P&gt;201906 97011 157&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;transpose&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=serv1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;prefix&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=FITM &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=serv2 (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=_name_) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; serv_mth;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; paidserv;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;id&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; fitm;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Note: desired result&lt;/P&gt;&lt;P&gt;SERV_MTH FITM97009 FITM97010 FITM97011&lt;/P&gt;&lt;P&gt;201905 4 21 51&lt;/P&gt;&lt;P&gt;201906 17 67 157&lt;/P&gt;&lt;P&gt;Total 21 88 208&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;*Wrong code;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;tabulate&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=serv1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=serv3;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; serv_mth fitm;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; paidserv;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; serv_mth,fitm ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Cynthia, the above are the codes. thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 22:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/572961#M161718</guid>
      <dc:creator>pensarchem</dc:creator>
      <dc:date>2019-07-11T22:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose and sum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/572964#M161719</link>
      <description>Changing a date to a character is usually a bad idea, nothing sorts correctly anymore. &lt;BR /&gt;You never asked for the total in the TABLE statement.&lt;BR /&gt;&lt;BR /&gt;table (serv_mth all="Total"), fitm;</description>
      <pubDate>Thu, 11 Jul 2019 22:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-and-sum/m-p/572964#M161719</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-11T22:40:20Z</dc:date>
    </item>
  </channel>
</rss>

