<?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 where bases on calculated column in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903801#M83130</link>
    <description>How can I ask her?</description>
    <pubDate>Sun, 19 Nov 2023 15:44:03 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2023-11-19T15:44:03Z</dc:date>
    <item>
      <title>PROC Report where bases on calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903795#M83126</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to print in proc report only rows with BMI between 19 and 21&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What&amp;nbsp; is the way to do it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class nowd;  
column name weight height BMI; 
define name / display; 
define weight / display; 
define height / display;
define bmi / computed format=4.1 'BMI';  
compute bmi;    
bmi = weight/(height*height)*703;
endcomp;  
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2023 09:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903795#M83126</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-11-19T09:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report where bases on calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903797#M83127</link>
      <description>&lt;P&gt;Apply the same formula in a WHERE= dataset option or a WHERE statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report
  data=sashelp.class (where=(19 le weight/(height*height)*703 le 21))
  nowd
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2023 11:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903797#M83127</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-19T11:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report where bases on calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903798#M83128</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Is there a way to perform it with related to the computed column ?&lt;/P&gt;
&lt;P&gt;In complicated cases the&amp;nbsp; computed column is not simple calculation and then it will be difficult to apply it in such way&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2023 11:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903798#M83128</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-11-19T11:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report where bases on calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903799#M83129</link>
      <description>&lt;P&gt;Calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;if this is possible.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2023 11:11:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903799#M83129</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-19T11:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report where bases on calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903801#M83130</link>
      <description>How can I ask her?</description>
      <pubDate>Sun, 19 Nov 2023 15:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903801#M83130</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-11-19T15:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report where bases on calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903802#M83131</link>
      <description>Hi:&lt;BR /&gt;  Unfortunately, PROC REPORT will not do what you want to do. When you are computing a column, the report row is already built and the other columns populated, so you're asking PROC REPORT to both build the report row and then suppress the same report row based on the value of the computed column. &lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s solution to use a WHERE or to pre-process the data in a DATA step before the PROC  REPORT step are the only solutions in this case.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 19 Nov 2023 15:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903802#M83131</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-11-19T15:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report where bases on calculated column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903812#M83132</link>
      <description>&lt;P&gt;Thank you for the clarification!&lt;/P&gt;
&lt;P&gt;I was not sure if there might be a trick to achieve this buried in PROC REPORT.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2023 17:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report-where-bases-on-calculated-column/m-p/903812#M83132</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-19T17:16:10Z</dc:date>
    </item>
  </channel>
</rss>

