<?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: Row by row comparison and update previous row text to current row at few instances in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/462242#M117649</link>
    <description>&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;now i have couple of more records with below instance sno 4,5&lt;/P&gt;
&lt;P&gt;INPUT&lt;/P&gt;
&lt;P&gt;sno txt sq&lt;BR /&gt;1 a 1&lt;BR /&gt;1 b 2&lt;BR /&gt;1 u 3&lt;BR /&gt;1 u 4&lt;BR /&gt;1 u 5&lt;BR /&gt;1 c 6&lt;BR /&gt;2 a 1&lt;BR /&gt;2 b 2&lt;BR /&gt;3 a 1&lt;BR /&gt;3 b 2&lt;BR /&gt;3 u 3&lt;BR /&gt;3 c 4&lt;BR /&gt;3 u 5&lt;BR /&gt;3 u 6&lt;BR /&gt;4 u 1&lt;BR /&gt;4 b 2&lt;BR /&gt;5 a 1&lt;BR /&gt;5 u 2&lt;BR /&gt;5 b 3&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Need output as shown below variable txt with 'u' observation for sno 4 and 5 as well&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;OUTPUT&lt;/P&gt;
&lt;P&gt;sno txt sq&lt;BR /&gt;1 a 1&lt;BR /&gt;1 b 2&lt;BR /&gt;1 bu 3&lt;BR /&gt;1 bu 4&lt;BR /&gt;1 bu 5&lt;BR /&gt;1 c 6&lt;BR /&gt;2 a 1&lt;BR /&gt;2 b 2&lt;BR /&gt;3 a 1&lt;BR /&gt;3 b 2&lt;BR /&gt;3 bu 3&lt;BR /&gt;3 c 4&lt;BR /&gt;3 cu 5&lt;BR /&gt;3 cu 6&lt;BR /&gt;4 bu 1&lt;BR /&gt;4 b 2&lt;BR /&gt;5 a 1&lt;BR /&gt;5 bu 2&lt;BR /&gt;5 b 3&lt;/P&gt;</description>
    <pubDate>Tue, 15 May 2018 02:29:07 GMT</pubDate>
    <dc:creator>help09</dc:creator>
    <dc:date>2018-05-15T02:29:07Z</dc:date>
    <item>
      <title>Row by row comparison and update previous row text to current row at few instances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/457452#M115985</link>
      <description>&lt;P&gt;Thanks for your support in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the input&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD colspan="3" width="192" height="20" class="xl63" style="height: 15.0pt; width: 144pt;"&gt;INPUT&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt;"&gt;sno&lt;/TD&gt;
&lt;TD class="xl64" style="border-left: none;"&gt;txt&lt;/TD&gt;
&lt;TD class="xl64" style="border-left: none;"&gt;sq&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;u&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;u&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;u&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;u&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;u&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;u&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need output as shown below variable txt with 'u' observation with previous value.&amp;amp; current value i.e 'u' as shown in &lt;STRONG&gt;BOLD&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD colspan="3" width="192" height="20" class="xl65" style="height: 15.0pt; width: 144pt;"&gt;OUTPUT&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;sno&lt;/TD&gt;
&lt;TD class="xl66" style="border-left: none;"&gt;txt&lt;/TD&gt;
&lt;TD class="xl66" style="border-left: none;"&gt;sq&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl67" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;bu&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl67" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;bu&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl67" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;bu&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl67" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;bu&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl67" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;cu&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl67" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;cu&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/457452#M115985</guid>
      <dc:creator>help09</dc:creator>
      <dc:date>2018-04-25T19:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Row by row comparison and update previous row text to current row at few instances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/457457#M115986</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input sno	txt : $8.	sq;
datalines;
1	a	1
1	b	2
1	u	3
1	u	4
1	u	5
1	c	6
2	a	1
2	b	2
3	a	1
3	b	2
3	u	3
3	c	4
3	u	5
3	u	6
;

data want;
set have;
by sno;
length k $8;
if first.sno then call missing(k);
retain k;
if txt='u' then txt=cats(k,txt);
else k=txt;
drop k;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/457457#M115986</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-04-25T19:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Row by row comparison and update previous row text to current row at few instances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/457557#M116013</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18419"&gt;@help09&lt;/a&gt;&amp;nbsp;The solution is straight forward and simple with&amp;nbsp; retain, concatenate and reset logic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the question is answered, you could mark and close the thread&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 22:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/457557#M116013</guid>
      <dc:creator>MarkWik</dc:creator>
      <dc:date>2018-04-25T22:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Row by row comparison and update previous row text to current row at few instances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/457574#M116018</link>
      <description>&lt;P&gt;If the length of your current TXT field is 1 (proc contents or other method methods examining the table to tell) then your solution will require setting a length for the variable to hold the longest expected value.&lt;/P&gt;
&lt;P&gt;This would look something&amp;nbsp;like:&lt;/P&gt;
&lt;PRE&gt;data want;
  length txt $ 2;
  set have;
/* other code*/
run;&lt;/PRE&gt;
&lt;P&gt;Note that if the length statement is after the Set you'll get a warning that you can't change existing variable length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 23:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/457574#M116018</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-25T23:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Row by row comparison and update previous row text to current row at few instances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/462242#M117649</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;now i have couple of more records with below instance sno 4,5&lt;/P&gt;
&lt;P&gt;INPUT&lt;/P&gt;
&lt;P&gt;sno txt sq&lt;BR /&gt;1 a 1&lt;BR /&gt;1 b 2&lt;BR /&gt;1 u 3&lt;BR /&gt;1 u 4&lt;BR /&gt;1 u 5&lt;BR /&gt;1 c 6&lt;BR /&gt;2 a 1&lt;BR /&gt;2 b 2&lt;BR /&gt;3 a 1&lt;BR /&gt;3 b 2&lt;BR /&gt;3 u 3&lt;BR /&gt;3 c 4&lt;BR /&gt;3 u 5&lt;BR /&gt;3 u 6&lt;BR /&gt;4 u 1&lt;BR /&gt;4 b 2&lt;BR /&gt;5 a 1&lt;BR /&gt;5 u 2&lt;BR /&gt;5 b 3&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Need output as shown below variable txt with 'u' observation for sno 4 and 5 as well&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;OUTPUT&lt;/P&gt;
&lt;P&gt;sno txt sq&lt;BR /&gt;1 a 1&lt;BR /&gt;1 b 2&lt;BR /&gt;1 bu 3&lt;BR /&gt;1 bu 4&lt;BR /&gt;1 bu 5&lt;BR /&gt;1 c 6&lt;BR /&gt;2 a 1&lt;BR /&gt;2 b 2&lt;BR /&gt;3 a 1&lt;BR /&gt;3 b 2&lt;BR /&gt;3 bu 3&lt;BR /&gt;3 c 4&lt;BR /&gt;3 cu 5&lt;BR /&gt;3 cu 6&lt;BR /&gt;4 bu 1&lt;BR /&gt;4 b 2&lt;BR /&gt;5 a 1&lt;BR /&gt;5 bu 2&lt;BR /&gt;5 b 3&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 02:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/462242#M117649</guid>
      <dc:creator>help09</dc:creator>
      <dc:date>2018-05-15T02:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Row by row comparison and update previous row text to current row at few instances</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/462245#M117650</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;now i have couple of more records with below instance sno 4,5&lt;/P&gt;
&lt;P&gt;INPUT&lt;/P&gt;
&lt;P&gt;sno txt sq&lt;BR /&gt;1 a 1&lt;BR /&gt;1 b 2&lt;BR /&gt;1 u 3&lt;BR /&gt;1 u 4&lt;BR /&gt;1 u 5&lt;BR /&gt;1 c 6&lt;BR /&gt;2 a 1&lt;BR /&gt;2 b 2&lt;BR /&gt;3 a 1&lt;BR /&gt;3 b 2&lt;BR /&gt;3 u 3&lt;BR /&gt;3 c 4&lt;BR /&gt;3 u 5&lt;BR /&gt;3 u 6&lt;BR /&gt;4 u 1&lt;BR /&gt;4 b 2&lt;BR /&gt;5 a 1&lt;BR /&gt;5 u 2&lt;BR /&gt;5 b 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Need output as shown below variable txt with 'u' observation for sno 4 and 5 as well&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OUTPUT&lt;/P&gt;
&lt;P&gt;sno txt sq&lt;BR /&gt;1 a 1&lt;BR /&gt;1 b 2&lt;BR /&gt;1 bu 3&lt;BR /&gt;1 bu 4&lt;BR /&gt;1 bu 5&lt;BR /&gt;1 c 6&lt;BR /&gt;2 a 1&lt;BR /&gt;2 b 2&lt;BR /&gt;3 a 1&lt;BR /&gt;3 b 2&lt;BR /&gt;3 bu 3&lt;BR /&gt;3 c 4&lt;BR /&gt;3 cu 5&lt;BR /&gt;3 cu 6&lt;BR /&gt;4 bu 1&lt;BR /&gt;4 b 2&lt;BR /&gt;5 a 1&lt;BR /&gt;5 bu 2&lt;BR /&gt;5 b 3&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 03:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Row-by-row-comparison-and-update-previous-row-text-to-current/m-p/462245#M117650</guid>
      <dc:creator>help09</dc:creator>
      <dc:date>2018-05-15T03:16:44Z</dc:date>
    </item>
  </channel>
</rss>

