<?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 tab and a difference coulmn in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-tab-and-a-difference-coulmn/m-p/402981#M278893</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/7476"&gt;@robm&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I get a 4&lt;SUP&gt;th&lt;/SUP&gt; column that is the difference of 2017/2018 – 2016/2017 values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Either use proc report which allows referencing result columns in calculations or do all of the summary before, do the calculation in a datastep and use proc tabulate (or report or print) to display the calculated result.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 22:54:55 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-10-10T22:54:55Z</dc:date>
    <item>
      <title>proc tab and a difference coulmn</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tab-and-a-difference-coulmn/m-p/402969#M278892</link>
      <description>&lt;P&gt;I have a proc tab&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;option validvarname=any;
libname stdnt "E:\SAS\Data\Student";
libname robm "f:\robm";

proc tabulate data=ROBM.dump missing contents = ' ' format=COMMA6.0 S=[foreground=highlight.];
   class 'Reporting Year'n 'Responsible College'n 'Reporting Year'n;
   var 'Final Charge'n;
   keylabel Sum = " ";
   table  ('Responsible College'n ="")  all=Total , (('Reporting Year'n="Reporting Year" )*(('Final Charge'n = "")*F=COMMA12.0)) /
                  contents = ' ' misstext=' ' box={label="test"};
  run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that gives&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proctab.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15759i05FE55203BF63EF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="proctab.PNG" alt="proctab.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I get a 4&lt;SUP&gt;th&lt;/SUP&gt; column that is the difference of 2017/2018 – 2016/2017 values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 22:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tab-and-a-difference-coulmn/m-p/402969#M278892</guid>
      <dc:creator>robm</dc:creator>
      <dc:date>2017-10-10T22:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc tab and a difference coulmn</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tab-and-a-difference-coulmn/m-p/402981#M278893</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/7476"&gt;@robm&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I get a 4&lt;SUP&gt;th&lt;/SUP&gt; column that is the difference of 2017/2018 – 2016/2017 values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Either use proc report which allows referencing result columns in calculations or do all of the summary before, do the calculation in a datastep and use proc tabulate (or report or print) to display the calculated result.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 22:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tab-and-a-difference-coulmn/m-p/402981#M278893</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-10T22:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc tab and a difference coulmn</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tab-and-a-difference-coulmn/m-p/405523#M278894</link>
      <description>&lt;P&gt;Thanks Ballard&lt;/P&gt;
&lt;P&gt;Summary before is the way i went&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tab-and-a-difference-coulmn/m-p/405523#M278894</guid>
      <dc:creator>robm</dc:creator>
      <dc:date>2017-10-19T13:19:58Z</dc:date>
    </item>
  </channel>
</rss>

