<?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: Deleting records based on a timestamp field with PROC SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Deleting-records-based-on-a-timestamp-field-with-PROC-SQL/m-p/26602#M4775</link>
    <description>Thanks for the help, Scott!  I was not aware of the DATEPART function.  It worked a treat.</description>
    <pubDate>Tue, 02 Nov 2010 16:26:44 GMT</pubDate>
    <dc:creator>rmwachter</dc:creator>
    <dc:date>2010-11-02T16:26:44Z</dc:date>
    <item>
      <title>Deleting records based on a timestamp field with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-records-based-on-a-timestamp-field-with-PROC-SQL/m-p/26600#M4773</link>
      <description>I have a SAS datafile that contains a timestamp field (datetime20.)&lt;BR /&gt;
&lt;BR /&gt;
I would like to delete a specific set of records that have no other commonality other than they were all loaded with the same timestamp.&lt;BR /&gt;
&lt;BR /&gt;
Within PROC SQL, is it possible to perform a cast-type function or substring the data?  The only part that I really need is the date portion.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 02 Nov 2010 14:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-records-based-on-a-timestamp-field-with-PROC-SQL/m-p/26600#M4773</guid>
      <dc:creator>rmwachter</dc:creator>
      <dc:date>2010-11-02T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting records based on a timestamp field with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-records-based-on-a-timestamp-field-with-PROC-SQL/m-p/26601#M4774</link>
      <description>A SAS DATE and DATETIME variable are not CHARACTER-type, they are numeric.  You must use the DATEPART function and likely a SAS DATE literal value in your SQL SELECT statement.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search arguments, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
proc sql datepart function site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
using date datetime values site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
using date literal values site:sas.com

Message was edited by: sbb</description>
      <pubDate>Tue, 02 Nov 2010 15:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-records-based-on-a-timestamp-field-with-PROC-SQL/m-p/26601#M4774</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-11-02T15:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting records based on a timestamp field with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-records-based-on-a-timestamp-field-with-PROC-SQL/m-p/26602#M4775</link>
      <description>Thanks for the help, Scott!  I was not aware of the DATEPART function.  It worked a treat.</description>
      <pubDate>Tue, 02 Nov 2010 16:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-records-based-on-a-timestamp-field-with-PROC-SQL/m-p/26602#M4775</guid>
      <dc:creator>rmwachter</dc:creator>
      <dc:date>2010-11-02T16:26:44Z</dc:date>
    </item>
  </channel>
</rss>

