<?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: Get last 6 hrs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/498028#M132217</link>
    <description>&lt;P&gt;What do you want to do with the first 5-6 hours of data records?&amp;nbsp;&amp;nbsp; How close to 6 hours prior to the record-in-hand&amp;nbsp; must the target observation be?&amp;nbsp; What is the sort order of incoming data, and how big is it?&lt;/P&gt;</description>
    <pubDate>Sat, 22 Sep 2018 02:21:39 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2018-09-22T02:21:39Z</dc:date>
    <item>
      <title>Get last 6 hrs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/497922#M132160</link>
      <description>I have a table with a datetime field i need to get to pull whst the entry was 6 hrs ago&lt;BR /&gt;&lt;BR /&gt;Id. Datetime. Balance&lt;BR /&gt;. 21sep2018:12:22:30. 100&lt;BR /&gt;B2. 21sep2018:10:22:30. 189&lt;BR /&gt;A6. 21sep2018:12:09:30. 65&lt;BR /&gt;Whst i want is to pull report showing what they did 6 hrs ago&lt;BR /&gt;&lt;BR /&gt;Id. Datetime. Balance&lt;BR /&gt;. 21sep2018:06:22:30. 233&lt;BR /&gt;B2. 21sep2018:04:22:30. 35&lt;BR /&gt;A6. 21sep2018:03:09:30. 64</description>
      <pubDate>Fri, 21 Sep 2018 17:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/497922#M132160</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2018-09-21T17:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get last 6 hrs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/497928#M132164</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117620"&gt;@Gil_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I have a table with a datetime field i need to get to pull whst the entry was 6 hrs ago&lt;BR /&gt;&lt;BR /&gt;Id. Datetime. Balance&lt;BR /&gt;. 21sep2018:12:22:30. 100&lt;BR /&gt;B2. 21sep2018:10:22:30. 189&lt;BR /&gt;A6. 21sep2018:12:09:30. 65&lt;BR /&gt;Whst i want is to pull report showing what they did 6 hrs ago&lt;BR /&gt;&lt;BR /&gt;Id. Datetime. Balance&lt;BR /&gt;. 21sep2018:06:22:30. 233&lt;BR /&gt;B2. 21sep2018:04:22:30. 35&lt;BR /&gt;A6. 21sep2018:03:09:30. 64&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Exactly to the second (or fraction thereof) 6 hours ago? Or "closest to 6 hours" (might be 5 hours and 58 minutes). Or the closest at least six hours ago (six hours and three minutes?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 17:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/497928#M132164</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-21T17:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get last 6 hrs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/497942#M132172</link>
      <description>Yes as close as 6 hrs</description>
      <pubDate>Fri, 21 Sep 2018 18:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/497942#M132172</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2018-09-21T18:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get last 6 hrs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/497997#M132198</link>
      <description>&lt;P&gt;You need to be more precise explaining your requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, for each ID value get the row with the datetime that is closest to being no more than 6 hours prior to the time the query runs. Does this agree with what you want or not?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 22:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/497997#M132198</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-21T22:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get last 6 hrs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/498028#M132217</link>
      <description>&lt;P&gt;What do you want to do with the first 5-6 hours of data records?&amp;nbsp;&amp;nbsp; How close to 6 hours prior to the record-in-hand&amp;nbsp; must the target observation be?&amp;nbsp; What is the sort order of incoming data, and how big is it?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 02:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/498028#M132217</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-09-22T02:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get last 6 hrs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/498185#M132324</link>
      <description>&lt;P&gt;You can use function INTCK to check the time interval between two dates / datetimes / times:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SYNTAX:&lt;!-- &amp;lt;meta prod="SAS 9.2 Language Reference: Dictionary" title="INTCK Function" url="../lrdict.hlp/a000212868.htm "&gt; --&gt;&lt;/P&gt;
&lt;DIV class="sgml"&gt;
&lt;TABLE cellspacing="2" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD&gt;&lt;SPAN class="strong"&gt;INTCK&lt;/SPAN&gt;(&lt;SPAN class="emph"&gt;interval&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="emph"&gt;multiple&lt;/SPAN&gt;&amp;gt;&amp;lt;&lt;SPAN class="emph"&gt;.shift-index&lt;/SPAN&gt;&amp;gt;, &lt;SPAN class="emph"&gt;from&lt;/SPAN&gt;, &lt;SPAN class="emph"&gt;to&lt;/SPAN&gt;)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should define interval as "hour". Then check the interval is it less or equal to 6.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 23 Sep 2018 07:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-6-hrs/m-p/498185#M132324</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-09-23T07:52:09Z</dc:date>
    </item>
  </channel>
</rss>

