<?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 Print WHERE multiple input in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884315#M43296</link>
    <description>&lt;P&gt;it is numeric, so&lt;/P&gt;
&lt;P&gt;the code is the next:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=Ret_oth (obs=1000);
where Check=0 and reporting_month in (03 04 05);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But still the results only provide 03 data&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 11:48:15 GMT</pubDate>
    <dc:creator>Stepik</dc:creator>
    <dc:date>2023-07-11T11:48:15Z</dc:date>
    <item>
      <title>Proc Print WHERE multiple input</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884303#M43294</link>
      <description>&lt;P&gt;Dear team, I I have been stuck to find a solution to provide the output results for the 3 months. The solution does not work if I add months 04 and 05.&lt;/P&gt;
&lt;P&gt;What is the best way to display the data for the condition WHERE Check = 0 and month = 03 04 05?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=Oth (obs=1000);
where Check=0 and month = 03;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jul 2023 10:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884303#M43294</guid>
      <dc:creator>Stepik</dc:creator>
      <dc:date>2023-07-11T10:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print WHERE multiple input</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884304#M43295</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If month is numeric:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;month in (3 4 5)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or if month is character:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;month in ('03' '04' '05')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;B.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 10:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884304#M43295</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-07-11T10:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print WHERE multiple input</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884315#M43296</link>
      <description>&lt;P&gt;it is numeric, so&lt;/P&gt;
&lt;P&gt;the code is the next:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=Ret_oth (obs=1000);
where Check=0 and reporting_month in (03 04 05);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But still the results only provide 03 data&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 11:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884315#M43296</guid>
      <dc:creator>Stepik</dc:creator>
      <dc:date>2023-07-11T11:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print WHERE multiple input</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884320#M43297</link>
      <description>&lt;P&gt;The following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Ret_oth;
  do reporting_month = 1 to 5;
    Check=0; output;
    Check=1; output;
  end; 
run;

proc print data=Ret_oth (obs=1000);
where Check=0 and reporting_month in (03 04 05);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;works as expected.&lt;/P&gt;
&lt;P&gt;Check you data (&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068/show-comments/true" target="_self"&gt;Maxim 3&lt;/A&gt;), maybe months 4 and 5 are after obs=1000?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 11:54:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884320#M43297</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-07-11T11:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print WHERE multiple input</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884322#M43298</link>
      <description>correct, I need to check for more observations. Then it works. Thanks</description>
      <pubDate>Tue, 11 Jul 2023 12:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-Print-WHERE-multiple-input/m-p/884322#M43298</guid>
      <dc:creator>Stepik</dc:creator>
      <dc:date>2023-07-11T12:02:14Z</dc:date>
    </item>
  </channel>
</rss>

