<?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 tabulate formatting and computation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105178#M29363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You gave me enough information to read and figure it out via research.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Aug 2013 20:49:28 GMT</pubDate>
    <dc:creator>Martinez77</dc:creator>
    <dc:date>2013-08-09T20:49:28Z</dc:date>
    <item>
      <title>proc tabulate formatting and computation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105173#M29358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would like to get rid of or edit the border at the top of my proc tabulate tables. It is only a problem when their is a variable to page break on.&lt;/P&gt;&lt;P&gt;also I would like to add a simple subtraction computation for example income1-income2 =difference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Note the ugly bordering that is only on the page lable. It is make my template look horrible. Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;Martinez&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/3992_pastedImage_0.png" style="width: 1200px; height: 592px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 15:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105173#M29358</guid>
      <dc:creator>Martinez77</dc:creator>
      <dc:date>2013-08-08T15:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate formatting and computation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105174#M29359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Seeing all of your code and understanding your ODS destination will be important information for anyone to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; However, you also have a different challenge. You said that&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"I would like to add a simple subtraction computation for example income1-income2 =difference"&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; However, only PROC REPORT has a COMPUTE block which allows you to perform computations such as you describe. PROC REPORT can produce the same set of statistics as TABULATE, except for a few, so depending on your desired statistics, you should be able to switch to PROC REPORT fairly easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But, again, seeing ALL of your code and knowing your destination would make it easier for someone to point you to a solution. It looks like you are getting simple counts. So it should not be hard to move to REPORT. Depending on your destination, if you do NOT need to compute a new column, then you might want to work with Tech Support on your border issue. It might be a problem with your code or your destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 16:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105174#M29359</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-08-08T16:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate formatting and computation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105175#M29360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I figured out the ods issue. I just added the / box =_page_ and it resolved the problem for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as proc report goes I have never used it. Could you show me some example code of proc report that would reflect a proc tabulate output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My boss just asked me about it recently so still waiting to hear back from him on specific variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess and example would be income1 -income2 =difference all showing in columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Martinez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 17:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105175#M29360</guid>
      <dc:creator>Martinez77</dc:creator>
      <dc:date>2013-08-08T17:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate formatting and computation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105176#M29361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the simple code that is trying to be executed after bringing in a data set.&lt;/P&gt;&lt;P&gt;I hope this helps clarify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Proc tabulate data=simsterm;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;CLASS GENDER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;VAR CUM_GPA CUR_GPA;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;TABLE GENDER, CUM_GPA CUR_GPA DIFF=(CUM_GPA – CUR_GPA);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 19:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105176#M29361</guid>
      <dc:creator>Martinez77</dc:creator>
      <dc:date>2013-08-08T19:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate formatting and computation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105177#M29362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your code: DIFF=(CUM_GPA-CUR_GPA) is not valid TABULATE syntax. So that is not going to work. In addition, you referred to BOX=_PAGE_, which indicates a 3 dimensional table, but in your posted code, you only have ROW and COL dimensions, you don't have a PAGE dimension. So are you asking about a different TABULATE than you originally posted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, I don't see any specification for TOTAL, such as you showed in your original screen shot. Do you have ANY working code with TABULATE? for the GPA example? Where is your BOX=_PAGE_ code? You also did not say what you were using for your destination of interest - -is it HTML, RTF, PDF???? What is your complete ODS statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In addition, with this new TABULATE that you show, you will get the SUM statistic by default for CUR_GPA and CUM_GPA -- is that what you want? The sum of all these values for each gender???? Or do you want the average??? Have you pre-computed the CUR and CUM values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You asked for some sample PROC REPORT code. There are a lot of examples in the doc and in previous forum postings. Without seeing your data and your WORKING code (you also need a semi-colon at the end of your CLASS statement for this newly posted code to work) for this new example, it's hard to come up with a specific example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 15:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105177#M29362</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-08-09T15:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate formatting and computation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105178#M29363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You gave me enough information to read and figure it out via research.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 20:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-formatting-and-computation/m-p/105178#M29363</guid>
      <dc:creator>Martinez77</dc:creator>
      <dc:date>2013-08-09T20:49:28Z</dc:date>
    </item>
  </channel>
</rss>

