<?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 inserting last row problem in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/616768#M77032</link>
    <description>&lt;P&gt;I found out that the missing value in a numeric variable column cannot be grouped or ordered, otherwise the row containing the missing value (.) would be disappeared.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jan 2020 10:36:35 GMT</pubDate>
    <dc:creator>Woodyfc</dc:creator>
    <dc:date>2020-01-12T10:36:35Z</dc:date>
    <item>
      <title>Proc report inserting last row problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/615993#M77019</link>
      <description>&lt;P&gt;Hello everyone, I encounter some trouble when using proc report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my source data's last row is manually calculated and modified and then use concatenate to "merge" them, but some variables are intended to be empty, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Var: Code&amp;nbsp; name&amp;nbsp; &amp;nbsp; number value_a&amp;nbsp; &amp;nbsp; value_b&amp;nbsp; &amp;nbsp;rate&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;:&lt;/P&gt;&lt;P&gt;last2:&amp;nbsp; 999&amp;nbsp; &amp;nbsp; &amp;nbsp;apple&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;last:&amp;nbsp; (blank)&amp;nbsp; Total&amp;nbsp; &amp;nbsp; &amp;nbsp;1000&amp;nbsp; &amp;nbsp; &amp;nbsp;900&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem is that when i use&amp;nbsp; &amp;nbsp; "defline code / group"&amp;nbsp; &amp;nbsp;my last row in data can not display in the proc report output and just disappeared, I would like to ask is there any other good ways to insert a row in proc report?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all very much !!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 17:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/615993#M77019</guid>
      <dc:creator>Woodyfc</dc:creator>
      <dc:date>2020-01-08T17:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report inserting last row problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/616071#M77020</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Without some sample code and your data and information about your ODS destination, it is nearly impossible to make any suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What code have you tried? What is your destination of interest? Can you post some test data that illustrates the issue?&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 21:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/616071#M77020</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-01-08T21:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report inserting last row problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/616096#M77023</link>
      <description>&lt;P&gt;Hello Cynthia, thank you very much for helping me and here is my sample data and my code. I first use proc summary to extract the column and calculate their total (b).&lt;/P&gt;&lt;P&gt;Then I used them to calculate the new variable (c), and I used concatenating method to combine them (d). After all, I used proc report&amp;nbsp;&lt;/P&gt;&lt;P&gt;to make the output. But it turns out does not include my last raw (my handmade column sum and total rates, (c)). Since the total rates in last row are not the column sum, so I can not simply use summarize to make this problem. Thank you !!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a;&lt;BR /&gt;input code type $ name $ total good bad good_rate bad_rate;&lt;BR /&gt;datalines;&lt;BR /&gt;11 a apple 10 8 2 0.8 0.2&lt;BR /&gt;11 b apple 10 7 3 0.7 0.3&lt;BR /&gt;11 c apple 20 10 10 0.5 0.5&lt;BR /&gt;13 a banana 10 8 1 0.8 0.2&lt;BR /&gt;17 a orange 30 27 3 0.9 0.1&lt;BR /&gt;17 b orange 30 18 12 0.6 0.4&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc summary data = a;&lt;BR /&gt;var total good bad;&lt;BR /&gt;output out = b (drop = _type_ _freq_);&lt;BR /&gt;sum = total good bad;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data c;&lt;BR /&gt;set b;&lt;BR /&gt;name = 'Total'&lt;BR /&gt;good_rate = round((good/total), .1);&lt;BR /&gt;bad_rate = round((bad/total), .1);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data d;&lt;BR /&gt;set a c;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data = d;&lt;BR /&gt;column _all_;&lt;BR /&gt;define code / group;&lt;BR /&gt;define type / display;&lt;BR /&gt;define name / display;&lt;BR /&gt;define total / display;&lt;BR /&gt;define good / display;&lt;BR /&gt;define bad / display;&lt;BR /&gt;define good_rate / display;&lt;BR /&gt;define bad_rate / display;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 01:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/616096#M77023</guid>
      <dc:creator>Woodyfc</dc:creator>
      <dc:date>2020-01-09T01:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report inserting last row problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/616098#M77024</link>
      <description>&lt;P&gt;I would like to output as a pdf file. Thank you&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 02:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/616098#M77024</guid>
      <dc:creator>Woodyfc</dc:creator>
      <dc:date>2020-01-09T02:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report inserting last row problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/616768#M77032</link>
      <description>&lt;P&gt;I found out that the missing value in a numeric variable column cannot be grouped or ordered, otherwise the row containing the missing value (.) would be disappeared.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 10:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-inserting-last-row-problem/m-p/616768#M77032</guid>
      <dc:creator>Woodyfc</dc:creator>
      <dc:date>2020-01-12T10:36:35Z</dc:date>
    </item>
  </channel>
</rss>

