<?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: Comparing a row in a dataset with the next row in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502650#M32168</link>
    <description>&lt;P&gt;Hi Draycuts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works now. Thanks a lots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i know what does the&amp;nbsp; " firstobs=2 " means ? and "Keep Employee_ID" means remain the Employee_ID field ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;merge&lt;/SPAN&gt; WORK&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;QUERY_FOR_SALES WORK&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;QUERY_FOR_SALES &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;firstobs&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;2&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;keep&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;Employee_ID &lt;SPAN class="token function"&gt;rename&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Employee_ID&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;leadEmp_ID&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
flag&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ifc&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Employee_ID&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;leadEmp_ID&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"TRUE"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"FALSE"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 10:54:03 GMT</pubDate>
    <dc:creator>SASnewbie2</dc:creator>
    <dc:date>2018-10-09T10:54:03Z</dc:date>
    <item>
      <title>Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502593#M32159</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your advice&amp;nbsp;how can i build an advanced expression&amp;nbsp;to compare the row data with following row data. For instance, I would like to compare the Employee_ID from row 1 with row 2, row 2 with row 3..etc and indicate "True" if the data is the same and "False" if it's different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS 2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23885i2064BB0A6CB8B220/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS 2.png" alt="SAS 2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23886i51ADA175B17CD718/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas.png" alt="sas.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 06:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502593#M32159</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2018-10-09T06:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502594#M32160</link>
      <description>&lt;P&gt;You can do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   merge SomeData SomeData(firstobs=2 keep=Employee_ID rename=(Employee_ID=leadEmp_ID));
   flag=ifc(Employee_ID=leadEmp_ID, "True", "False");
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Oct 2018 06:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502594#M32160</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-10-09T06:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502596#M32161</link>
      <description>&lt;P&gt;Hi D&lt;SPAN class="login-bold"&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304" target="_self"&gt;raycut&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Can I apply the code in the advanced expression as i have no knowledge in the SAS programming.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Alternatively, any other simplify way to do it ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 07:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502596#M32161</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2018-10-09T07:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502640#M32164</link>
      <description>&lt;P&gt;Hi Draycut,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the output. However, the identical value between row 1 and row 2 are showing "False" instead "True".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASS.png" style="width: 346px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23892i3E6F426419B6A413/image-size/large?v=v2&amp;amp;px=999" role="button" title="SASS.png" alt="SASS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 10:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502640#M32164</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2018-10-09T10:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502642#M32165</link>
      <description>&lt;P&gt;First, let me say, I have no idea about the Advanced Expression facility in EG. I am a straight up coder &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But to answer your question, all of you Employee_IDs are missing here? So you are comparing a &lt;STRONG&gt;missing value&lt;/STRONG&gt; to the number &lt;STRONG&gt;120103&amp;nbsp;&lt;/STRONG&gt;in your first row, which will definitely result in a False value.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 10:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502642#M32165</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-10-09T10:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502644#M32166</link>
      <description>&lt;P&gt;Hi Draycut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I copied it from your formula, is that anything I miss out ? as I would like to compare the row 1 value with the subsequent row value in the Employee ID column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;merge WORK.QUERY_FOR_SALES (firstobs=2 keep=Employee_ID rename=(Employee_ID=leadEmp_ID));&lt;BR /&gt;flag=ifc(Employee_ID=leadEmp_ID, "TRUE", "FALSE");&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 10:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502644#M32166</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2018-10-09T10:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502648#M32167</link>
      <description>&lt;P&gt;If you look at my code, I specify the same data set twice in the Merge Statement on purpose. Thus, I think your code should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
merge WORK.QUERY_FOR_SALES WORK.QUERY_FOR_SALES (firstobs=2 keep=Employee_ID rename=(Employee_ID=leadEmp_ID));
flag=ifc(Employee_ID=leadEmp_ID, "TRUE", "FALSE");
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Oct 2018 10:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502648#M32167</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-10-09T10:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502650#M32168</link>
      <description>&lt;P&gt;Hi Draycuts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works now. Thanks a lots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i know what does the&amp;nbsp; " firstobs=2 " means ? and "Keep Employee_ID" means remain the Employee_ID field ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;merge&lt;/SPAN&gt; WORK&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;QUERY_FOR_SALES WORK&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;QUERY_FOR_SALES &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;firstobs&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;2&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;keep&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;Employee_ID &lt;SPAN class="token function"&gt;rename&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Employee_ID&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;leadEmp_ID&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
flag&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ifc&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Employee_ID&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;leadEmp_ID&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"TRUE"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"FALSE"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 10:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502650#M32168</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2018-10-09T10:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502653#M32169</link>
      <description>&lt;P&gt;Cool, glad to hear that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;firstobs=2 means that you read from the second record in the data set. In the Merge Statement, we read the entire dataset &lt;STRONG&gt;and&amp;nbsp;&lt;/STRONG&gt;the employee_ID variable once more. Since this is the only variable of interest, we use the Keep=Employee_ID to make sure that we only read this variable here. Finally, we use the rename= option to rename the variable looking ahead.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 11:02:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502653#M32169</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-10-09T11:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502692#M32170</link>
      <description>&lt;P&gt;Hi, welcome to the SAS world!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm glad you got the results you want. Let me add a little to your background knowledge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Technically, you can't compare one row to the one before in the "Advanced Expression" builder, because it uses SQL, and SQL conceptually doesn't recognize the concept of sequentially comparing rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, it looks to me like what you're trying to do is to find instances where there are duplicate employee ids in your file. This can be done using the SQL operations in the Query Builder. If you need more advice on how to do it, just reply to this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 13:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502692#M32170</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-10-09T13:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502703#M32172</link>
      <description>&lt;P&gt;SAS actually supplies simple but powerful tools that let you accomplish this.&amp;nbsp; Consider:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by Employee_ID notsorted;&lt;/P&gt;
&lt;P&gt;length newvar $ 5;&lt;/P&gt;
&lt;P&gt;if last.Employee_ID=1 then newvar='True';&lt;/P&gt;
&lt;P&gt;else newvar='False';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The BY statement in a DATA step is "must-have" knowledge.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 14:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502703#M32172</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-10-09T14:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502957#M32186</link>
      <description>&lt;P&gt;Hi Draycut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks alot for your advice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 01:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502957#M32186</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2018-10-10T01:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502958#M32187</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great to hear the alternative solution from you too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate you could guide me how can it be done using SQL operations in the Query Builder too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 01:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502958#M32187</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2018-10-10T01:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502967#M32188</link>
      <description>&lt;P&gt;Just after I posted this, I noticed your other post. I hope you find the suggestions useful!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 03:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/502967#M32188</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-10-10T03:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/503665#M32215</link>
      <description>&lt;P&gt;Hi DrayCut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Require your valuable advice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;merge WORK.FINAL MOTOR CV TABLE 2 WORK.FINAL MOTOR CV TABLE 2 (firstobs=1 keep=Cn_No rename=(Cn_No=StatusF));&lt;BR /&gt;flag=ifc(Cn_No=StatusF, "1", "0");&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea why&amp;nbsp;the error prompt&amp;nbsp;as shown below (The file doesn't exist) if I using appended data set. However, it works fine if i using a dataset which before append&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23973iE763B696ED98AC64/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS.png" alt="SAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log shows alright if I&amp;nbsp;run the &lt;SPAN&gt;Truncate&lt;/SPAN&gt; data (before append)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasss.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23974i512EC97CB32E4C05/image-size/large?v=v2&amp;amp;px=999" role="button" title="sasss.png" alt="sasss.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 10:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/503665#M32215</guid>
      <dc:creator>SASnewbie2</dc:creator>
      <dc:date>2018-10-12T10:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing a row in a dataset with the next row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/601619#M35029</link>
      <description>Thanks, this code helped me a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 05 Nov 2019 10:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Comparing-a-row-in-a-dataset-with-the-next-row/m-p/601619#M35029</guid>
      <dc:creator>DS07</dc:creator>
      <dc:date>2019-11-05T10:25:20Z</dc:date>
    </item>
  </channel>
</rss>

