<?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 Evaluating time increments between records for same phone number in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194631#M266373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need some help, not even sure where to start.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have transactional data, I need to read through the records for each phone number and determine the time increment between each call to make sure it is outside allowable minimum number of minutes. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Each phone number could only have one call or multiple.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have no idea how to do this, any assistance will be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;thank you,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 22:46:12 GMT</pubDate>
    <dc:creator>Elliott</dc:creator>
    <dc:date>2015-03-04T22:46:12Z</dc:date>
    <item>
      <title>Evaluating time increments between records for same phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194631#M266373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need some help, not even sure where to start.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have transactional data, I need to read through the records for each phone number and determine the time increment between each call to make sure it is outside allowable minimum number of minutes. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Each phone number could only have one call or multiple.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have no idea how to do this, any assistance will be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;thank you,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 22:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194631#M266373</guid>
      <dc:creator>Elliott</dc:creator>
      <dc:date>2015-03-04T22:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating time increments between records for same phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194632#M266374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to post sample data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general use the dif function and then First/Last processing. &lt;/P&gt;&lt;P&gt;Use the First.phone_number to set the difference to missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 22:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194632#M266374</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-04T22:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating time increments between records for same phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194633#M266375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be helpful to know what your data looks like (i.e., fields, field types, and how they're formatted), and what you want to achieve.&amp;nbsp; e.g., are you looking for the average time between phone calls for each number, and do you just want to ignore phone numbers that only have one call?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 22:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194633#M266375</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-03-04T22:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating time increments between records for same phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194634#M266376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data is transactional, there is an ID, $18.; phone_num $20.; call_time in a time format looks like 08:46 AM in the data set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to evaluate each record that has the same phone number to see if the calls were placed within a 15 minutes period.&amp;nbsp; if so then I have to throw and error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not need to worry about phone numbers that only have 1 record call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 00:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194634#M266376</guid>
      <dc:creator>Elliott</dc:creator>
      <dc:date>2015-03-05T00:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating time increments between records for same phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194635#M266377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a date variable as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 00:40:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194635#M266377</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-03-05T00:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating time increments between records for same phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194636#M266378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;all records are for the same date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 00:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194636#M266378</guid>
      <dc:creator>Elliott</dc:creator>
      <dc:date>2015-03-05T00:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating time increments between records for same phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194637#M266379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dif function, based on a numeric variable that has a time format, will provide the number of seconds between two times.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat time time5.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format time time5.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input phonenum time;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;123 9:35&lt;/P&gt;&lt;P&gt;123 10:15&lt;/P&gt;&lt;P&gt;123 14:50&lt;/P&gt;&lt;P&gt;321 9:55&lt;/P&gt;&lt;P&gt;321 10:45&lt;/P&gt;&lt;P&gt;321 14:10&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by phonenum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dif=dif(time);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if first.phonenum then call missing(dif);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 01:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194637#M266379</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-03-05T01:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating time increments between records for same phone number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194638#M266380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Arthur, that is exactly what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cindy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Evaluating-time-increments-between-records-for-same-phone-number/m-p/194638#M266380</guid>
      <dc:creator>Elliott</dc:creator>
      <dc:date>2015-03-09T13:20:58Z</dc:date>
    </item>
  </channel>
</rss>

