<?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: INTCK in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/601822#M174127</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240770"&gt;@Ranjeeta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am tryin to find how many of the 46 records in the attached file are within 24 hours of each other&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm afraid this is not well-defined enough to venture an answer. Please explain further and give the desired output. Also, please provide your data according to &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_self"&gt;these instructions&lt;/A&gt; and not via Excel files.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 21:30:43 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-11-05T21:30:43Z</dc:date>
    <item>
      <title>INTCK</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/601814#M174123</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am tryin to find how many of the 46 records in the attached file are within 24 hours of each other&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the code below as one of the conditions?&lt;/P&gt;&lt;P&gt;Can someone please advise if the function is written correctly to capture the cases&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	(0 &amp;lt;= INTCK('HOUR', A.ENTRY_DT,N.REG_TM ) &amp;lt;= 24)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Nov 2019 21:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/601814#M174123</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2019-11-05T21:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: INTCK</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/601822#M174127</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240770"&gt;@Ranjeeta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am tryin to find how many of the 46 records in the attached file are within 24 hours of each other&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm afraid this is not well-defined enough to venture an answer. Please explain further and give the desired output. Also, please provide your data according to &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_self"&gt;these instructions&lt;/A&gt; and not via Excel files.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 21:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/601822#M174127</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-05T21:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: INTCK</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/601823#M174128</link>
      <description>&lt;P&gt;Are you going to compare all of the records to each other? Or just compare the two columns in the same record to each other?&lt;/P&gt;
&lt;P&gt;Are you doing this in SQL code somehow? If not then why do you have periods in your variable names?&lt;/P&gt;
&lt;P&gt;Why not just compare the time difference instead of counting the intervals?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;0&amp;lt;= X-Y &amp;lt;= '24:00't&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Nov 2019 21:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/601823#M174128</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-05T21:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: INTCK</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/601824#M174129</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240770"&gt;@Ranjeeta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am tryin to find how many of the 46 records in the attached file are within 24 hours of each other&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used the code below as one of the conditions?&lt;/P&gt;
&lt;P&gt;Can someone please advise if the function is written correctly to capture the cases&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	(0 &amp;lt;= INTCK('HOUR', A.ENTRY_DT,N.REG_TM ) &amp;lt;= 24)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You might want&lt;/P&gt;
&lt;PRE&gt;(0 &amp;lt;= abs( INTCK('HOUR', A.ENTRY_DT,N.REG_TM ) ) &amp;lt;= 24)&lt;/PRE&gt;
&lt;P&gt;unless you only want when N.Reg_tm is greater than A.Entry_dt. The Absolute value function make the value positive after the comparison. Or use -24 to 24.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to show us the rest of the code to see if you are comparing the records as intended.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also make very sure that your varaibles are either both TIME only or DATETIME only variables. If one is actually a date time and the other time then you will not get the results that you want. I point this out as we see lots of variables with a name ending in DT that are either date, which SAS has in days as units, or datetime which will have much larger values in general than plain "time of day" variables.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 21:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/601824#M174129</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-05T21:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: INTCK</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/602061#M174269</link>
      <description>Apologies yes will try to upload clear instructions</description>
      <pubDate>Wed, 06 Nov 2019 16:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INTCK/m-p/602061#M174269</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2019-11-06T16:53:09Z</dc:date>
    </item>
  </channel>
</rss>

