<?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 the data from log data. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384240#M91729</link>
    <description>&lt;P&gt;This is an expansion of the solution I already gave you in &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/How-to-read-next-record-for-consecutive-rows-of-data/m-p/383574" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/How-to-read-next-record-for-consecutive-rows-of-data/m-p/383574.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please re-use the code and expand it; if the result does not match your expectations, post your dataset in a data step (conversion macro found in &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="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;), and the code you tried.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 12:37:27 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-07-31T12:37:27Z</dc:date>
    <item>
      <title>Extracting the data from log data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384196#M91709</link>
      <description>&lt;P&gt;Hi, need a code where the data is to be extracted with following conditions , where assigned to is getting changed, with status= assigned and assigned dtm may change or remain same.&lt;/P&gt;&lt;P&gt;following is the data.&lt;/P&gt;&lt;P&gt;TicketId,AssignedTo,AssignedDTM,Status,Resolution,UpdatedBy,UpdatedDTM,ResolutionDate&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,824,30MAR2017:13:48:00.000,Assigned,824 03APR2017:09:37:32.347&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;63538,824,30MAR2017:13:48:00.000,Assigned,790 30MAR2017:13:48:48.080&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;63538,824,30MAR2017:13:48:00.000,Assigned,790 30MAR2017:13:48:48.080&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,848,03APR2017:09:38:00.000,Assigned,824 03APR2017:09:38:50.517&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,866,03APR2017:17:06:00.000,Assigned,848 03APR2017:17:06:33.553&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;63538,824,03APR2017:18:19:00.000,Assigned,866 03APR2017:18:19:59.447&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;63538,824,03APR2017:18:19:00.000,Assigned,773 05APR2017:11:10:42.557&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,824,03APR2017:18:19:00.000,Assigned,773 12APR2017:20:45:24.727&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,820,10MAY2017:19:48:00.000,Assigned,773 11MAY2017:00:20:27.800&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;63538,820,10MAY2017:19:48:00.000,Assigned,820 11MAY2017:15:12:08.537&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;63538,820,10MAY2017:19:48:00.000,Assigned,820 10MAY2017:19:48:08.777&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;63538,820,10MAY2017:19:48:00.000,Assigned,820 10MAY2017:20:00:17.180&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,784,11MAY2017:15:12:00.000,Assigned,820 11MAY2017:15:12:33.460&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;63538,784,11MAY2017:15:12:00.000,Assigned,790 15MAY2017:09:58:00.933&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,824,22JUN2017:19:18:00.000,Assigned,784 22JUN2017:19:18:33.717 16MAY2017:11:18:09.013&lt;/FONT&gt;&lt;BR /&gt;63538,824,22JUN2017:19:18:00.000,Assigned,790 22JUN2017:19:25:11.840 16MAY2017:11:18:09.013&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,849,30JUN2017:19:17:00.000,Assigned,790 30JUN2017:19:17:54.043 16MAY2017:11:18:09.013&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,824,03JUL2017:19:24:00.000,Assigned,849 03JUL2017:19:24:10.420 16MAY2017:11:18:09.013&lt;/FONT&gt;&lt;BR /&gt;63538,824,03JUL2017:19:24:00.000,Assigned,824 11JUL2017:23:22:41.703 16MAY2017:11:18:09.013&lt;BR /&gt;63538,784,11JUL2017:23:23:00.000,Assigned,824 11JUL2017:23:23:43.790 16MAY2017:11:18:09.013&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;63538,784,11JUL2017:23:23:00.000,Assigned,784 17JUL2017:12:07:30.920 16MAY2017:11:18:09.013&lt;/FONT&gt;&lt;BR /&gt;63538,784,11JUL2017:23:23:00.000,Assigned,773 13JUL2017:09:15:41.757 16MAY2017:11:18:09.013&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;only the record highlighted in red should be taken. where assigned to is been changed and the assigned date and updated dtm.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 10:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384196#M91709</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2017-07-31T10:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the data from log data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384200#M91712</link>
      <description>&lt;P&gt;Not really following. &amp;nbsp;Post test data in the form of a datastep as text in a code window ({i} above post). &amp;nbsp;It sounds to me like you can just compare current values with lag() variables and then output if different?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 10:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384200#M91712</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-31T10:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the data from log data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384205#M91715</link>
      <description>How can we do that ..can you explain with the code please</description>
      <pubDate>Mon, 31 Jul 2017 10:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384205#M91715</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2017-07-31T10:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the data from log data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384217#M91719</link>
      <description>&lt;P&gt;I am not typing that data in to write code for you. &amp;nbsp;Documentation on how to use the lag() function is in the manual:&lt;BR /&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lefunctionsref/69762/HTML/default/viewer.htm#n0l66p5oqex1f2n1quuopdvtcjqb.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lefunctionsref/69762/HTML/default/viewer.htm#n0l66p5oqex1f2n1quuopdvtcjqb.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings09/055-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/055-2009.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 11:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384217#M91719</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-31T11:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the data from log data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384240#M91729</link>
      <description>&lt;P&gt;This is an expansion of the solution I already gave you in &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/How-to-read-next-record-for-consecutive-rows-of-data/m-p/383574" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/How-to-read-next-record-for-consecutive-rows-of-data/m-p/383574.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please re-use the code and expand it; if the result does not match your expectations, post your dataset in a data step (conversion macro found in &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="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;), and the code you tried.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 12:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384240#M91729</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-31T12:37:27Z</dc:date>
    </item>
    <item>
      <title>extraction of records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384246#M91739</link>
      <description>&lt;P&gt;following is the data ,&lt;/P&gt;&lt;P&gt;sorting on the historydtm and select only TAT dates changed on latest history dtm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TicketId AssignedTo TAT HistoryDTM&lt;BR /&gt;91604 790 29JUN2017:00:00:00.000&lt;BR /&gt;91604 0 29JUN2017:00:00:00.000 28JUN2017:18:45:23.473&lt;BR /&gt;91604 0 29JUN2017:00:00:00.000 28JUN2017:18:45:51.090&lt;BR /&gt;91604 780 29JUN2017:00:00:00.000 28JUN2017:19:00:01.703&lt;BR /&gt;91604 780 29JUN2017:00:00:00.000 28JUN2017:19:12:30.097&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;91604 790 29JUN2017:00:00:00.000 29JUN2017:11:05:46.253&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;91604 780 30JUN2017:00:00:00.000 29JUN2017:14:15:25.720&lt;/FONT&gt;&lt;BR /&gt;91604 790 30JUN2017:00:00:00.000 29JUN2017:15:37:43.173&lt;BR /&gt;91604 790 30JUN2017:00:00:00.000 30JUN2017:12:30:52.953&lt;BR /&gt;91604 790 29JUN2017:00:00:00.000 30JUN2017:12:31:09.893&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data set should contain the above highlighted data only where assigned to is also been changing.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 12:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384246#M91739</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2017-07-31T12:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: extraction of records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384257#M91740</link>
      <description>&lt;P&gt;You have highlighted two lines but it is not clear &lt;STRONG&gt;what are the rules&lt;/STRONG&gt; to subset those lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean to extract lines&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;where&amp;nbsp;&amp;nbsp;HistoryDTM is between '29jun2017:11:00:00'dt and&amp;nbsp;'29jun2017:15:00:00'dt ?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The AssignedTo is changing from 790 =&amp;gt; 0 =&amp;gt; 780 =&amp;gt; 790 so why only those two lines should be extracted and not other changes ?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 13:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384257#M91740</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-07-31T13:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: extraction of records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384265#M91742</link>
      <description>I have merged your two posts into one. What format is your input - text like LOG file or a SAS dataset ?</description>
      <pubDate>Mon, 31 Jul 2017 13:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384265#M91742</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-07-31T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: extraction of records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384498#M91824</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;its a sas data set which is been fetch from sql db as it maintains the history of the changes saved on ticket generation.&lt;/P&gt;&lt;P&gt;we have to only take those data rows whose TAT is been changed from previous to new date&amp;amp;time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 04:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384498#M91824</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2017-08-01T04:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: extraction of records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384499#M91825</link>
      <description>actually above two solutions are been accepted as to fetch the specific record from the dataset.</description>
      <pubDate>Tue, 01 Aug 2017 05:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384499#M91825</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2017-08-01T05:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: extraction of records</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384504#M91827</link>
      <description>&lt;P&gt;You want to &lt;STRONG&gt;"&amp;nbsp;take those data rows whose TAT is been changed from previous to new date&amp;amp;time."&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please &amp;nbsp;define what are the ID variables of those rows ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 05:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-data-from-log-data/m-p/384504#M91827</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-01T05:08:39Z</dc:date>
    </item>
  </channel>
</rss>

