<?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: Multiple dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433048#M107325</link>
    <description>Thanks for ur help, it works...cheers</description>
    <pubDate>Thu, 01 Feb 2018 09:18:54 GMT</pubDate>
    <dc:creator>BIDD</dc:creator>
    <dc:date>2018-02-01T09:18:54Z</dc:date>
    <item>
      <title>Multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433018#M107307</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am doing some research on Crash data and I want to investigate few crashes happened on particular dates.&lt;/P&gt;&lt;P&gt;My data is in MDY format and these are the dates i&amp;nbsp; want to investigate (11/5/2017),(12/31/2017) &amp;amp;(01/04/2018)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the function to select dates between two periods, not sure of selecting particular dates.&lt;/P&gt;&lt;P&gt;Your advice is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 06:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433018#M107307</guid>
      <dc:creator>BIDD</dc:creator>
      <dc:date>2018-02-01T06:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433026#M107314</link>
      <description>&lt;OL&gt;&lt;LI&gt;If the crash_date are in numeric form just displayed as&amp;nbsp;&lt;SPAN&gt;11/5/2017 in the dataset then you can try a datastep like following&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data output;
set input;
where crash_date in ('05Nov2017'd, '31Dec2017'd, '04Jan2018'd);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;But if the&amp;nbsp;crash_date is characters then the following will work.&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data output;
set input;
where input(crash_date,mmddyy10.) in ('05Nov2017'd, '31Dec2017'd, '04Jan2018'd);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 01 Feb 2018 07:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433026#M107314</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-02-01T07:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433029#M107316</link>
      <description>&lt;P&gt;Depends on the actual format of the dates stored in your table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the dates are in text format this might work:&lt;/P&gt;
&lt;P&gt;data...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;set ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if date in ('&lt;SPAN&gt;11/5/2017' '12/31/2017' '01/04/2018'&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the dates are in numeric format then this might work:&lt;/P&gt;
&lt;P&gt;data...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;set ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;if date in ('05NOV&lt;SPAN&gt;2017'd '31DEC2017'd '04JAN2018'd&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 07:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433029#M107316</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-02-01T07:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433032#M107317</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set have;
   where date in ('05nov2017'd, '31dec2017'd, '04jan2018'd);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2018 08:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433032#M107317</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-02-01T08:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433044#M107323</link>
      <description>Thanks for ur help, it works...cheers&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Feb 2018 09:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433044#M107323</guid>
      <dc:creator>BIDD</dc:creator>
      <dc:date>2018-02-01T09:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433048#M107325</link>
      <description>Thanks for ur help, it works...cheers</description>
      <pubDate>Thu, 01 Feb 2018 09:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-dates/m-p/433048#M107325</guid>
      <dc:creator>BIDD</dc:creator>
      <dc:date>2018-02-01T09:18:54Z</dc:date>
    </item>
  </channel>
</rss>

