<?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: Extracting and adding time lag in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-and-adding-time-lag/m-p/159413#M12411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all you need to provide a rule which digit positions in your original value correspond to day, month, year, hours, minutes and seconds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 13:31:04 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2014-11-06T13:31:04Z</dc:date>
    <item>
      <title>Extracting and adding time lag</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-and-adding-time-lag/m-p/159412#M12410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All - I have been trying to write a query in SAS EG in which I need to add the time difference of 30 minutes as per the following date and time format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1141013222329&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above format means 13OCT2014 22:22:39&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to extract processing done after 30 minutes of time difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the desired result should be 13OCT2014 22:52&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me to get this thing done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Ather&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 13:18:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-and-adding-time-lag/m-p/159412#M12410</guid>
      <dc:creator>alam_ather</dc:creator>
      <dc:date>2014-11-06T13:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting and adding time lag</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-and-adding-time-lag/m-p/159413#M12411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all you need to provide a rule which digit positions in your original value correspond to day, month, year, hours, minutes and seconds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 13:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-and-adding-time-lag/m-p/159413#M12411</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-11-06T13:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting and adding time lag</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-and-adding-time-lag/m-p/159414#M12412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If its a datetime value (and I am in meeting so cant check), then you can use intck on the time part to increment 30 minutes and then use that with the datepart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 14:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-and-adding-time-lag/m-p/159414#M12412</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-06T14:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting and adding time lag</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-and-adding-time-lag/m-p/159415#M12413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Your date time does not mean 13OCT2014 22:22:39, it means 13OCT2014 22:23:39.&lt;/P&gt;&lt;P&gt;The following, while far from elegant, will get the job done, as long as the curious leading "1" doesn't change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;dtinput=put(1141013222329,best13.);&lt;/P&gt;&lt;P&gt;dtstr1=substr(dtinput,2,6) ||" "|| substr(dtinput,8,2) ||":"|| substr(dtinput,10,2) || ":" || substr(dtinput,12,2);&lt;/P&gt;&lt;P&gt;dtnumeric=input(dtstr1(anydtdtm19.);&lt;/P&gt;&lt;P&gt;processInterval=intnx("dtminute",dtnumeric,30,"s");&lt;/P&gt;&lt;P&gt;format processInterval datetime;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;*Result processInterval = 13Oct14:22:53:29&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck in your project.&lt;/P&gt;&lt;P&gt;-Joel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 14:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extracting-and-adding-time-lag/m-p/159415#M12413</guid>
      <dc:creator>JPM</dc:creator>
      <dc:date>2014-11-11T14:10:22Z</dc:date>
    </item>
  </channel>
</rss>

