<?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 Proc Report with selected rows in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-with-selected-rows/m-p/43315#M5785</link>
    <description>With a PROC REPORT is it possibile to put in output only those rows with a column value &amp;gt; x?&lt;BR /&gt;
&lt;BR /&gt;
Example&lt;BR /&gt;
Complete report:&lt;BR /&gt;
GroupVariable_A  |__B_|__C_|&lt;BR /&gt;
aaaa __________|1000|2000|&lt;BR /&gt;
bbbb __________|___0|___1|&lt;BR /&gt;
cccc __________|5000|3000|&lt;BR /&gt;
&lt;BR /&gt;
Desidered report (only rows with B &amp;gt;= 1000)&lt;BR /&gt;
GroupVariable_A  |__B_|__C_|&lt;BR /&gt;
aaaa __________|1000|2000|&lt;BR /&gt;
cccc __________|5000|3000|&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
MPaola</description>
    <pubDate>Mon, 04 Apr 2011 10:55:32 GMT</pubDate>
    <dc:creator>MPaola</dc:creator>
    <dc:date>2011-04-04T10:55:32Z</dc:date>
    <item>
      <title>Proc Report with selected rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-with-selected-rows/m-p/43315#M5785</link>
      <description>With a PROC REPORT is it possibile to put in output only those rows with a column value &amp;gt; x?&lt;BR /&gt;
&lt;BR /&gt;
Example&lt;BR /&gt;
Complete report:&lt;BR /&gt;
GroupVariable_A  |__B_|__C_|&lt;BR /&gt;
aaaa __________|1000|2000|&lt;BR /&gt;
bbbb __________|___0|___1|&lt;BR /&gt;
cccc __________|5000|3000|&lt;BR /&gt;
&lt;BR /&gt;
Desidered report (only rows with B &amp;gt;= 1000)&lt;BR /&gt;
GroupVariable_A  |__B_|__C_|&lt;BR /&gt;
aaaa __________|1000|2000|&lt;BR /&gt;
cccc __________|5000|3000|&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
MPaola</description>
      <pubDate>Mon, 04 Apr 2011 10:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-with-selected-rows/m-p/43315#M5785</guid>
      <dc:creator>MPaola</dc:creator>
      <dc:date>2011-04-04T10:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report with selected rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-with-selected-rows/m-p/43316#M5786</link>
      <description>Hi:&lt;BR /&gt;
  It depends.&lt;BR /&gt;
&lt;BR /&gt;
  If B is based on a single observation, where GroupVariableA has been defined as a DISPLAY or ORDER variable, then a simple WHERE clause will eliminate the rows where _B is LT 1000 or GT X. However, if B is summarized based on your GroupVariable_A actually being defined with a usage of GROUP in PROC REPORT, then you will need to "pre-summarize" your data to determine which rows should "go forward" to PROC REPORT. There have been some previous postings on the subject, but it will be simple enough to do -- just use PROC MEANS, PROC SQL, PROC TABULATE and/or PROC REPORT to get summarized values and then eliminate the summarized rows that do not conform to what you want.&lt;BR /&gt;
 &lt;BR /&gt;
  This does mean making 2 passes through the data. Just remember that any grand totals will not include those variables' values, if you eliminate the rows from the summary data -- unless you work on getting the numbers back in the total.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 04 Apr 2011 12:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-with-selected-rows/m-p/43316#M5786</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-04T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report with selected rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-with-selected-rows/m-p/43317#M5787</link>
      <description>And compute block will also can help you.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Thu, 07 Apr 2011 09:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-with-selected-rows/m-p/43317#M5787</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-07T09:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report with selected rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-with-selected-rows/m-p/43318#M5788</link>
      <description>And compute block will also can help you.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Thu, 07 Apr 2011 09:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-with-selected-rows/m-p/43318#M5788</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-07T09:36:30Z</dc:date>
    </item>
  </channel>
</rss>

