<?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: Proving out logic by min max from tabulate in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806386#M33555</link>
    <description>&lt;P&gt;The result should look like the below I tried the below code but I am getting other variables too&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;proc means data=wf n min max ;&lt;BR /&gt;format excl exl. ;&lt;BR /&gt;/* by Exclusion_Code_Version; */&lt;BR /&gt;class excl&lt;BR /&gt;/ order=fmt ;&lt;BR /&gt;var&lt;BR /&gt;EngineSize Cylinders Horsepower MPG_City MPG_Highway Weight Wheelbase&lt;BR /&gt;Length&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Excl&lt;/TD&gt;&lt;TD&gt;Variable&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;Minimum&lt;/TD&gt;&lt;TD&gt;Maximum&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;1 EngineSize &amp;lt;=2&lt;/TD&gt;&lt;TD&gt;EngineSize&lt;/TD&gt;&lt;TD&gt;79&lt;/TD&gt;&lt;TD&gt;1.3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;2 Cylinders &amp;lt;=4&lt;/TD&gt;&lt;TD&gt;Cylinders&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3 Horsepower &amp;lt;=100&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Horsepower&lt;/TD&gt;&lt;TD&gt;267&lt;/TD&gt;&lt;TD&gt;155&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7 Wheelbase &amp;lt;100&lt;/TD&gt;&lt;TD&gt;Wheelbase&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;96&lt;/TD&gt;&lt;TD&gt;99&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 19:26:04 GMT</pubDate>
    <dc:creator>bobi</dc:creator>
    <dc:date>2022-04-06T19:26:04Z</dc:date>
    <item>
      <title>Proving out logic by min max from tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806362#M33552</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data wf;&lt;BR /&gt;set sashelp.cars;&lt;/P&gt;&lt;P&gt;if EngineSize &amp;lt;=2 then excl=1;&lt;BR /&gt;else if Cylinders &amp;lt;=4 then excl=2;&lt;BR /&gt;else if Horsepower &amp;lt;=100 then excl=3;&lt;BR /&gt;else if MPG_City &amp;lt;=20 then excl=4;&lt;BR /&gt;else if MPG_Highway &amp;lt;22 then excl=5;&lt;BR /&gt;else if Weight &amp;lt;2000 then excl=6;&lt;BR /&gt;else if Wheelbase &amp;lt;100 then excl=7;&lt;BR /&gt;else if Length &amp;lt;110 then excl=8;&lt;BR /&gt;else&lt;BR /&gt;excl=99;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value exl 1=' 1 EngineSize &amp;lt;=2 ' 2=' 2 Cylinders &amp;lt;=4 '&lt;BR /&gt;3=' 3 Horsepower &amp;lt;=100 ' 4=' 4 MPG_City &amp;lt;=20 '&lt;BR /&gt;5=' 5 MPG_Highway &amp;lt;22 ' 6=' 6 Weight &amp;lt;2000 '&lt;BR /&gt;7=' 7 Wheelbase &amp;lt;100 ' 8=' 8 Length &amp;lt;110 ' 99='99 Pass';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc tabulate data=wf noseps missing;&lt;BR /&gt;format excl exl.;&lt;BR /&gt;class excl/preloadfmt;&lt;BR /&gt;tables excl all, all=''/printmiss misstext='0';&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=wf ;by excl;run;&lt;BR /&gt;proc tabulate data=wf;&lt;BR /&gt;format excl exl.;&lt;BR /&gt;by excl;&lt;BR /&gt;class excl/preloadfmt;&lt;BR /&gt;var EngineSize Cylinders Horsepower MPG_City MPG_Highway Weight Wheelbase&lt;BR /&gt;Length;&lt;BR /&gt;tables excl, EngineSize Cylinders Horsepower MPG_City MPG_Highway Weight Wheelbase&lt;BR /&gt;Length , (n*f=6. min*f=6. max*f=6.) ;&lt;BR /&gt;run;&lt;/P&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;&lt;P&gt;First result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobi_0-1649266576558.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70172i7A633322FE184E6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bobi_0-1649266576558.png" alt="bobi_0-1649266576558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;remaining ones are by excl multiple tables but needed by excl by logic variable in one step&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobi_1-1649266637055.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70173i9B2A6AC1D0431907/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bobi_1-1649266637055.png" alt="bobi_1-1649266637055.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Example I need only engine size should be in the table not remaining variables MIN AND MAX when I run 2nd tabulate&amp;nbsp;&lt;/P&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>Wed, 06 Apr 2022 17:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806362#M33552</guid>
      <dc:creator>bobi</dc:creator>
      <dc:date>2022-04-06T17:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proving out logic by min max from tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806379#M33553</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Example I need only engine size should be in the table not remaining &lt;FONT color="#FF0000"&gt;variables&lt;/FONT&gt; MIN AND MAX when I run 2nd tabulate&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Variables, or observations? Show us what the desired table looks like, even if you have to type it in yourself and make up the N and MIN and MAX.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 18:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806379#M33553</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-06T18:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proving out logic by min max from tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806385#M33554</link>
      <description>&lt;P&gt;Please provide a narrative of what you are actually supposed to be creating. Showing code, as in your WF data set or Tabulate that does not create what you want doesn't really help a great deal. Especially when you have 3 proc tabulate calls and do not describe which one is not providing what you actually want.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 19:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806385#M33554</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-06T19:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proving out logic by min max from tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806386#M33555</link>
      <description>&lt;P&gt;The result should look like the below I tried the below code but I am getting other variables too&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;proc means data=wf n min max ;&lt;BR /&gt;format excl exl. ;&lt;BR /&gt;/* by Exclusion_Code_Version; */&lt;BR /&gt;class excl&lt;BR /&gt;/ order=fmt ;&lt;BR /&gt;var&lt;BR /&gt;EngineSize Cylinders Horsepower MPG_City MPG_Highway Weight Wheelbase&lt;BR /&gt;Length&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Excl&lt;/TD&gt;&lt;TD&gt;Variable&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;Minimum&lt;/TD&gt;&lt;TD&gt;Maximum&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;1 EngineSize &amp;lt;=2&lt;/TD&gt;&lt;TD&gt;EngineSize&lt;/TD&gt;&lt;TD&gt;79&lt;/TD&gt;&lt;TD&gt;1.3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;2 Cylinders &amp;lt;=4&lt;/TD&gt;&lt;TD&gt;Cylinders&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3 Horsepower &amp;lt;=100&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Horsepower&lt;/TD&gt;&lt;TD&gt;267&lt;/TD&gt;&lt;TD&gt;155&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7 Wheelbase &amp;lt;100&lt;/TD&gt;&lt;TD&gt;Wheelbase&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;96&lt;/TD&gt;&lt;TD&gt;99&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 19:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806386#M33555</guid>
      <dc:creator>bobi</dc:creator>
      <dc:date>2022-04-06T19:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proving out logic by min max from tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806387#M33556</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3542"&gt;@bobi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The result should look like the below I tried the below code but I am getting other variables too&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;proc means data=wf n min max ;&lt;BR /&gt;format excl exl. ;&lt;BR /&gt;/* by Exclusion_Code_Version; */&lt;BR /&gt;class excl&lt;BR /&gt;/ order=fmt ;&lt;BR /&gt;var&lt;BR /&gt;EngineSize Cylinders Horsepower MPG_City MPG_Highway Weight Wheelbase&lt;BR /&gt;Length&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;Excl&lt;/TD&gt;
&lt;TD&gt;Variable&lt;/TD&gt;
&lt;TD&gt;N&lt;/TD&gt;
&lt;TD&gt;Minimum&lt;/TD&gt;
&lt;TD&gt;Maximum&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;1 EngineSize &amp;lt;=2&lt;/TD&gt;
&lt;TD&gt;EngineSize&lt;/TD&gt;
&lt;TD&gt;79&lt;/TD&gt;
&lt;TD&gt;1.3&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;2 Cylinders &amp;lt;=4&lt;/TD&gt;
&lt;TD&gt;Cylinders&lt;/TD&gt;
&lt;TD&gt;60&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3 Horsepower &amp;lt;=100&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Horsepower&lt;/TD&gt;
&lt;TD&gt;267&lt;/TD&gt;
&lt;TD&gt;155&lt;/TD&gt;
&lt;TD&gt;500&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;7 Wheelbase &amp;lt;100&lt;/TD&gt;
&lt;TD&gt;Wheelbase&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;96&lt;/TD&gt;
&lt;TD&gt;99&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm sorry, but this still isn't clear to me. What extra variables are you getting? Be specific. And please, as I asked, show us the table you would like to get, even if you have to make up the numbers and type it in yourself.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 19:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806387#M33556</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-06T19:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proving out logic by min max from tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806426#M33561</link>
      <description>&lt;P&gt;The narrative is I am running a waterfall if-else conditions tagging along as exclusions and I wanted to show the waterfall report and each condition with the min and max of the variable involved in the logic&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 01:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proving-out-logic-by-min-max-from-tabulate/m-p/806426#M33561</guid>
      <dc:creator>bobi</dc:creator>
      <dc:date>2022-04-07T01:51:41Z</dc:date>
    </item>
  </channel>
</rss>

