<?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: Get last non null value to first in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810620#M319670</link>
    <description>&lt;P&gt;Here is my solution for VAR1-VAR3, you can modify this for any arbitrary number of variables. Assumes the missing/null values are always at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    array x var1-var3;
    array z(3) $ _temporary_;
    n=3-cmiss(of x(*)); 
    do i=n to 1 by -1;
        z(n-i+1)=x(i);
    end;
    do i=1 to dim(x);
        if not missing(x(i)) then x(i)=z(i);
    end;
    drop n i;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Apr 2022 13:10:35 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-04-29T13:10:35Z</dc:date>
    <item>
      <title>Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810596#M319653</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id | val1 | val2 | val3&amp;nbsp;| val4 | val5 | val6 | val7 | val8&lt;/P&gt;&lt;P&gt;1 | abc&amp;nbsp; | efg&amp;nbsp; &amp;nbsp;| hij&amp;nbsp; &amp;nbsp; | klm&amp;nbsp; | npo |&amp;nbsp; qrs&amp;nbsp; | tuv&amp;nbsp; &amp;nbsp;| wxy&lt;/P&gt;&lt;P&gt;2 | hdi&amp;nbsp; &amp;nbsp;| iijk&amp;nbsp; &amp;nbsp;| klm&amp;nbsp; &amp;nbsp;| null | null |&amp;nbsp; null | null | null&amp;nbsp;&lt;/P&gt;&lt;P&gt;3 | kkk&amp;nbsp; | iikl&amp;nbsp; | null | null |&amp;nbsp; null | null | null&amp;nbsp; | null&lt;/P&gt;&lt;P&gt;4 | klm&amp;nbsp;&amp;nbsp;| null | null |&amp;nbsp; null | null | null&amp;nbsp;| null&amp;nbsp; | null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;want&lt;/P&gt;&lt;P&gt;id | val1 | val2 | val3&amp;nbsp;| val4 | val5 | val6 | val7 | val8&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;| wxy&amp;nbsp; | tuv&amp;nbsp; &amp;nbsp;| qrs&amp;nbsp; &amp;nbsp;| npo&amp;nbsp; | klm |&amp;nbsp; hij&amp;nbsp; | efg&amp;nbsp; &amp;nbsp;| abc&lt;/P&gt;&lt;P&gt;2 | klm&amp;nbsp; &amp;nbsp;| iijk&amp;nbsp; &amp;nbsp; | hdi&amp;nbsp; | null | null |&amp;nbsp; null | null | null&lt;/P&gt;&lt;P&gt;3 | iikl&amp;nbsp; &amp;nbsp; | kkk&amp;nbsp; &amp;nbsp;| null&amp;nbsp; | null&amp;nbsp;| null&amp;nbsp; | null&amp;nbsp;| null&amp;nbsp; | null&lt;/P&gt;&lt;P&gt;4 | klm&amp;nbsp; |&amp;nbsp;| null&amp;nbsp; | null&amp;nbsp;| null&amp;nbsp; | null&amp;nbsp;| null&amp;nbsp; | null&amp;nbsp;| null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest me sas code to get the desired output.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 12:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810596#M319653</guid>
      <dc:creator>melligeri</dc:creator>
      <dc:date>2022-04-29T12:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810599#M319654</link>
      <description>&lt;P&gt;Can you please provide an explanation of the logic that turns the first table into the second table?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 12:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810599#M319654</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-29T12:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810600#M319655</link>
      <description>&lt;P&gt;So you want to reverse all elements that are not null, correct?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 12:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810600#M319655</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-04-29T12:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810603#M319657</link>
      <description>&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;As you can see the have data set has multiple cal columns. Since this is transposed data that i have it can have any number of val columns. My requirement is, I need the last column value(if its not null) as the first column value in the want data set. Some id can have all the val columns with data, some can have only few val columns with data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;for id = 1 in have data set val8 is populated in val1 of want data&lt;/P&gt;&lt;P&gt;similarly for id = 2 in have dataset val4 is populated in val1 of want data&lt;/P&gt;&lt;P&gt;Hope i am clear with my explanation&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 12:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810603#M319657</guid>
      <dc:creator>melligeri</dc:creator>
      <dc:date>2022-04-29T12:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810619#M319669</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dlm='|';
input id (val1-val8) ($);
cards;
1 | abc  | efg   | hij    | klm  | npo |  qrs  | tuv   | wxy
2 | hdi   | iijk   | klm   | null | null |  null | null | null 
3 | kkk  | iikl  | null | null |  null | null | null  | null
4 | klm  | null | null |  null | null | null | null  | null
;

data want;
 set have;
 array v{8} $ val:;
 array new{8} $ 40 ;
 j=0;
 do i=dim(v) to 1 by -1;
   if v{i} ne 'null' then do;j+1;new{j}=v{i};end;
    else new{i}=v{i};
 end;
drop i j val:;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Apr 2022 13:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810619#M319669</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-29T13:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810620#M319670</link>
      <description>&lt;P&gt;Here is my solution for VAR1-VAR3, you can modify this for any arbitrary number of variables. Assumes the missing/null values are always at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    array x var1-var3;
    array z(3) $ _temporary_;
    n=3-cmiss(of x(*)); 
    do i=n to 1 by -1;
        z(n-i+1)=x(i);
    end;
    do i=1 to dim(x);
        if not missing(x(i)) then x(i)=z(i);
    end;
    drop n i;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Apr 2022 13:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810620#M319670</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-29T13:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810622#M319671</link>
      <description>&lt;P&gt;So you just want the last non-null value as the first value. You are not concerned about the order of the remaining values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
array val(*) val1-val8;
do _i = 1 to 8;
    if val(_i) = 'null' then do;
        * swap the last non-null value with the first;
        _tmp = val(_i-1);
        val(_i-1) = val1;
        val1 = _tmp;
        leave;
    end;
end;
drop _:;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Apr 2022 13:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810622#M319671</guid>
      <dc:creator>average_joe</dc:creator>
      <dc:date>2022-04-29T13:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810635#M319677</link>
      <description>&lt;P&gt;Let's assume by 'null' you mean missing.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
  input id (val1-val8) ($);
cards;
1 abc efg hij klm npo qrs tuv wxy
2 hdi iijk klm . . . . .
3 kkk iikl . . . . . .
4 klm . . . . . . .
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you literally have the string 'null' in the variable values then adjust the code below to account for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could unroll the data out into a "tall" dataset instead of the current "wide" dataset.&amp;nbsp; Then roll it back into the array.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tall;
  set have;
  array x val1-val8;
  do index=dim(x) to 1 by -1;
    value=x[index];
    if not missing(value) then output;
  end;
  keep id value;
run;

data want;
 do index=1 by 1 until(last.id);
   merge have tall;
   by id;
   array x val1-val8;
   if first.id then call missing(of x[*]);
   x[index]=value;
 end;
 drop index value ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the data is large then you might want to make the TALL dataset as a VIEW instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;Obs    id    val1    val2    val3    val4    val5    val6    val7    val8

 1      1    wxy     tuv     qrs     npo     klm     hij     efg     abc
 2      2    klm     iijk    hdi
 3      3    iikl    kkk
 4      4    klm


&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 14:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810635#M319677</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-29T14:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810663#M319691</link>
      <description>Hi,&lt;BR /&gt;thank you so much for the solution, but it is still not what i was expecting. I am sorry about the requirement i posted, i think it is not clear yet.&lt;BR /&gt;Let me try to explain in more here.&lt;BR /&gt;&lt;BR /&gt;According to your code, it is only with data set having 3 val columns. I modified a bit, please find it below.&lt;BR /&gt;&lt;BR /&gt;data have;&lt;BR /&gt;infile cards dlm='|';&lt;BR /&gt;input id (val1-val9) ($);&lt;BR /&gt;cards;&lt;BR /&gt;1 | abc | efg | hij | klm | npo | qrs | tuv | wxy | aaa&lt;BR /&gt;2 | hdi | iijk | klm | null | null | null | null | null | null&lt;BR /&gt;3 | kkk | iikl | null | null | null | null | null | null | null&lt;BR /&gt;4 | klm | null | null | null | null | null | null | null | null&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;There are 9 val columns and i just want 8 val columns in the want dataset. So in the output i want something like this.&lt;BR /&gt;&lt;BR /&gt;want&lt;BR /&gt;id | val1 | val2 | val3 | val4 | val5 | val6 | val7 | val8&lt;BR /&gt;&lt;BR /&gt;1 aaa | wxy | tuv | qrs | npo | klm | hij | efg&lt;BR /&gt;&lt;BR /&gt;2 | klm | iijk | hdi | null | null | null | null | null&lt;BR /&gt;&lt;BR /&gt;3 | iikl | kkk | null | null | null | null | null | null&lt;BR /&gt;&lt;BR /&gt;4 | klm | | null | null | null | null | null | null | null&lt;BR /&gt;&lt;BR /&gt;Thank you for your help</description>
      <pubDate>Fri, 29 Apr 2022 14:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810663#M319691</guid>
      <dc:creator>melligeri</dc:creator>
      <dc:date>2022-04-29T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810666#M319694</link>
      <description>&lt;P&gt;Show me the modified code.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 14:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810666#M319694</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-29T14:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810670#M319697</link>
      <description>&lt;P&gt;If the values are really missing (instead of the silly "null" string in your example) then you could use CATX() to help you.&amp;nbsp; Make sure to define the string variable long enough to hold the values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  array x val1-val8 ;
  length string $200 ;
  string=catx('|',of val8-val1);
  do index=1 to dim(x);
    x[index]=scan(string,index,'|');
  end;
  drop index string;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you really have the "null" text in the fields then remove the trailing "null" text first.&amp;nbsp; You can use COALESCEC() to add it back it you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  array x val1-val8 ;
  do index=dim(x) to 1 by -1 while (x[index]='null');
     call missing(x[index]);
  end;
  length string $200 ;
  string=catx('|',of val8-val1);
  do index=1 to dim(x);
    x[index]=coalescec(scan(string,index,'|'),'null');
  end;
  drop index string;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810670#M319697</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-29T15:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810675#M319698</link>
      <description>&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;array x val1-val8;&lt;BR /&gt;array z(8) $ _temporary_;&lt;BR /&gt;n=8-cmiss(of x(*));&lt;BR /&gt;do i=n to 1 by -1;&lt;BR /&gt;z(n-i+1)=x(i);&lt;BR /&gt;end;&lt;BR /&gt;do i=1 to dim(x);&lt;BR /&gt;if not missing(x(i)) then x(i)=z(i);&lt;BR /&gt;end;&lt;BR /&gt;drop n i;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810675#M319698</guid>
      <dc:creator>melligeri</dc:creator>
      <dc:date>2022-04-29T15:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810676#M319699</link>
      <description>&lt;P&gt;Maybe I misunderstood something here, but I was assuming where you wrote &lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt; it was actually a missing value. The text &lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt; is not a missing value. The code I wrote works fine if the values are actually missing.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810676#M319699</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-29T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810677#M319700</link>
      <description>the word 'null' is actually missing values.&lt;BR /&gt;&lt;BR /&gt;The requirement is actually to have the latest 8 values and ignore old value.&lt;BR /&gt;&lt;BR /&gt;Example,&lt;BR /&gt;If there are val1-val9 columns in the output i need val9-val2 values.&lt;BR /&gt;&lt;BR /&gt;The have dataset is actually transposed dataset, sometimes it can have just 4 columns(val1-val4) sometimes it can have 9 columns(val1-val9).</description>
      <pubDate>Fri, 29 Apr 2022 15:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810677#M319700</guid>
      <dc:creator>melligeri</dc:creator>
      <dc:date>2022-04-29T15:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810678#M319701</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422231"&gt;@melligeri&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;the word 'null' is actually missing values.&lt;BR /&gt;&lt;BR /&gt;The requirement is actually to have the latest 8 values and ignore old value.&lt;BR /&gt;&lt;BR /&gt;Example,&lt;BR /&gt;If there are val1-val9 columns in the output i need val9-val2 values.&lt;BR /&gt;&lt;BR /&gt;The have dataset is actually transposed dataset, sometimes it can have just 4 columns(val1-val4) sometimes it can have 9 columns(val1-val9).&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are these variables numeric? Or are these variables character?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810678#M319701</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-29T15:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810679#M319702</link>
      <description>&lt;P&gt;character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically it showul identify number of val columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example if there val columns till val12 it has to get the values from val12 to val5.&lt;/P&gt;&lt;P&gt;if it has val columns till val4 it has to get the values from val4- val1.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810679#M319702</guid>
      <dc:creator>melligeri</dc:creator>
      <dc:date>2022-04-29T15:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810680#M319703</link>
      <description>&lt;P&gt;Why not fix it BEFORE transposing?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810680#M319703</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-29T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810686#M319705</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422231"&gt;@melligeri&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the code should work if you change 'null' to truly missing before you run my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Basically it showul identify number of val columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example if there val columns till val12 it has to get the values from val12 to val5.&lt;/P&gt;
&lt;P&gt;if it has val columns till val4 it has to get the values from val4- val1.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This seems to be a new criterion that has not been mentioned before, and my code will not handle this.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810686#M319705</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-29T15:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810688#M319707</link>
      <description>Sorry about lack of information.&lt;BR /&gt;Any help is appreciated, Thank you.</description>
      <pubDate>Fri, 29 Apr 2022 15:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810688#M319707</guid>
      <dc:creator>melligeri</dc:creator>
      <dc:date>2022-04-29T15:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get last non null value to first</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810690#M319708</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422231"&gt;@melligeri&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Sorry about lack of information.&lt;BR /&gt;Any help is appreciated, Thank you.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please write complete and clear specifications for the problem, with several examples (plural), so we don't have to keep asking you for more information. Spend some time on it. Be thorough. Emphasis on&amp;nbsp;&lt;STRONG&gt;COMPLETE&amp;nbsp;&lt;/STRONG&gt;and emphasis on&amp;nbsp;&lt;STRONG&gt;CLEAR&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-last-non-null-value-to-first/m-p/810690#M319708</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-29T15:57:40Z</dc:date>
    </item>
  </channel>
</rss>

