<?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: Update the value in cross format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586066#M167263</link>
    <description>&lt;P&gt;With code, it seems the typical male competition turns the other way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Mine is shorter!"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2019 11:57:34 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-09-04T11:57:34Z</dc:date>
    <item>
      <title>Update the value in cross format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586048#M167252</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to update the column which already existing in another column using cross level.&lt;/P&gt;&lt;P&gt;In more detail. I share the sample dataset and my required output below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data aaa;
input ID val1;
cards;
10 0
10 12
10 15
10 14
15 0
15 24
15 26
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I expect my result as&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Val1&lt;/TD&gt;&lt;TD&gt;Val2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;26&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if clarification required.&lt;/P&gt;&lt;P&gt;Kindly suggest some ideas to resolve the task.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 10:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586048#M167252</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2019-09-04T10:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update the value in cross format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586050#M167254</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data aaa;
input ID val1;
cards;
10 0
10 12
10 15
10 14
15 0
15 24
15 26
;

data want;
    set aaa;
    by ID;
    val2=lag1(val1);
    if first.ID then val2=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Sep 2019 11:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586050#M167254</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-04T11:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update the value in cross format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586051#M167255</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215282"&gt;@Sathish_jammy&lt;/a&gt;&amp;nbsp; Methinks One IFN will do,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data aaa;
input ID val1;
cards;
10 0
10 12
10 15
10 14
15 0
15 24
15 26
;

data want;
set aaa;
by id;
val2=ifn( first.id=0,lag(val1),0);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 11:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586051#M167255</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-09-04T11:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update the value in cross format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586066#M167263</link>
      <description>&lt;P&gt;With code, it seems the typical male competition turns the other way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Mine is shorter!"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 11:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586066#M167263</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-09-04T11:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update the value in cross format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586068#M167265</link>
      <description>&lt;P&gt;Hahahahaha, You know what, Let's add to MAXIMS &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;Sir &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; Well, Let me take this opportunity to let you know that since my colleagues at CITIZENS Bank saw the huge printed version of MAXIMS sticking in my desk, everybody in our credit risk/BI started following that. One guy, by the name Connor Dahlman who was a summer intern here has become a big fan of you. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; You are very popular in 1000, Lafayette Blvd&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 12:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-the-value-in-cross-format/m-p/586068#M167265</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-09-04T12:03:07Z</dc:date>
    </item>
  </channel>
</rss>

