<?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 USING IN () FOR DATES in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/USING-IN-FOR-DATES/m-p/525218#M4903</link>
    <description>&lt;P&gt;I have a Year column and a Date column. For a particular year, I want to delete a few dates. I was trying the following code, but not getting what I expect:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data aaa;
set bbb;
if year= 2007 and date in ('03/13/2007'd, '03/14/2007'd) then delete;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I was getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Invalid date/time/datetime constant '03/13/2007'd.&lt;BR /&gt;ERROR: Invalid date/time/datetime constant '03/14/2007'd.&lt;BR /&gt;ERROR 77-185: Invalid number conversion on '03/14/2007'd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where did I go wrong? What should I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 20:46:45 GMT</pubDate>
    <dc:creator>d6k5d3</dc:creator>
    <dc:date>2019-01-07T20:46:45Z</dc:date>
    <item>
      <title>USING IN () FOR DATES</title>
      <link>https://communities.sas.com/t5/New-SAS-User/USING-IN-FOR-DATES/m-p/525218#M4903</link>
      <description>&lt;P&gt;I have a Year column and a Date column. For a particular year, I want to delete a few dates. I was trying the following code, but not getting what I expect:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data aaa;
set bbb;
if year= 2007 and date in ('03/13/2007'd, '03/14/2007'd) then delete;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I was getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Invalid date/time/datetime constant '03/13/2007'd.&lt;BR /&gt;ERROR: Invalid date/time/datetime constant '03/14/2007'd.&lt;BR /&gt;ERROR 77-185: Invalid number conversion on '03/14/2007'd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where did I go wrong? What should I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 20:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/USING-IN-FOR-DATES/m-p/525218#M4903</guid>
      <dc:creator>d6k5d3</dc:creator>
      <dc:date>2019-01-07T20:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: USING IN () FOR DATES</title>
      <link>https://communities.sas.com/t5/New-SAS-User/USING-IN-FOR-DATES/m-p/525219#M4904</link>
      <description>&lt;P&gt;Work with DATE only (not YEAR) but in a different form:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if date in ('13MAR2007'd, '14MAR2007'd) then delete;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 20:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/USING-IN-FOR-DATES/m-p/525219#M4904</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-07T20:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: USING IN () FOR DATES</title>
      <link>https://communities.sas.com/t5/New-SAS-User/USING-IN-FOR-DATES/m-p/525224#M4908</link>
      <description>Awesome! Thank you!</description>
      <pubDate>Mon, 07 Jan 2019 20:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/USING-IN-FOR-DATES/m-p/525224#M4908</guid>
      <dc:creator>d6k5d3</dc:creator>
      <dc:date>2019-01-07T20:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: USING IN () FOR DATES</title>
      <link>https://communities.sas.com/t5/New-SAS-User/USING-IN-FOR-DATES/m-p/525227#M4909</link>
      <description>&lt;P&gt;The value inside the quotes of a datetime literal (constant) must be in a format that the DATE informat understands.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'01JAN2017'd
'01-JAN-2017'd
"1Jan17"d&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Jan 2019 21:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/USING-IN-FOR-DATES/m-p/525227#M4909</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-01-07T21:13:41Z</dc:date>
    </item>
  </channel>
</rss>

