<?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 change value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/change-value/m-p/23204#M3815</link>
    <description>provider          id             yr&lt;BR /&gt;
M                 908000        0&lt;BR /&gt;
M                908000      1937&lt;BR /&gt;
A                1001750     2000&lt;BR /&gt;
A                1001750     2003  &lt;BR /&gt;
&lt;BR /&gt;
I have a situation where for a single if there are differenr yr's.&lt;BR /&gt;
1.if the yr is 0, how to change the value of that yr to the other year value the id has.&lt;BR /&gt;
for M 90800 should take 1937.&lt;BR /&gt;
similarly for provider A if there are different values take the first value i.e 2000</description>
    <pubDate>Mon, 30 Nov 2009 14:47:06 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2009-11-30T14:47:06Z</dc:date>
    <item>
      <title>change value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-value/m-p/23204#M3815</link>
      <description>provider          id             yr&lt;BR /&gt;
M                 908000        0&lt;BR /&gt;
M                908000      1937&lt;BR /&gt;
A                1001750     2000&lt;BR /&gt;
A                1001750     2003  &lt;BR /&gt;
&lt;BR /&gt;
I have a situation where for a single if there are differenr yr's.&lt;BR /&gt;
1.if the yr is 0, how to change the value of that yr to the other year value the id has.&lt;BR /&gt;
for M 90800 should take 1937.&lt;BR /&gt;
similarly for provider A if there are different values take the first value i.e 2000</description>
      <pubDate>Mon, 30 Nov 2009 14:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-value/m-p/23204#M3815</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-11-30T14:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: change value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-value/m-p/23205#M3816</link>
      <description>create table fix as select provider, id, min(yr) as myr &lt;BR /&gt;
from xxx where yr ^= 0 group by provider, id;&lt;BR /&gt;
update  xxx a set yr = (select myr from fix  b where a.provider = b.provider and a.id = b.id);</description>
      <pubDate>Mon, 30 Nov 2009 14:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-value/m-p/23205#M3816</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-11-30T14:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: change value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-value/m-p/23206#M3817</link>
      <description>Thanks Flip.</description>
      <pubDate>Mon, 30 Nov 2009 15:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-value/m-p/23206#M3817</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-11-30T15:33:57Z</dc:date>
    </item>
  </channel>
</rss>

