<?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: SAS_Specific Value for rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324207#M71952</link>
    <description>&lt;P&gt;I haven't run this, as not typing in that test data. &amp;nbsp;For future reference post test data in the form of a datastep:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  retain spec_value 1;
  output;
  if value=35 then spec_value=sum(spec_value,1);
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Jan 2017 10:58:51 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-01-12T10:58:51Z</dc:date>
    <item>
      <title>Set value based on other value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324203#M71951</link>
      <description>&lt;P&gt;I want to give the value for some specific rows. I think showing it by example would be better. I have following datasheet;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; Date                 Value
01/01/2001          10
02/01/2001          20
03/01/2001          35
04/01/2001          15
05/01/2001          25
06/01/2001          35
07/01/2001          20
08/01/2001          45
09/01/2001          35&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My result should be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; Date                 Value    Spec.Value
 01/01/2001          10        1
 02/01/2001          20        1
 03/01/2001          35        1
 04/01/2001          15        2
 05/01/2001          25        2
 06/01/2001          35        2
 07/01/2001          20        3
 08/01/2001          45        3
 09/01/2001          35        3&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As you can see, my condition value is 35. I have three 35. I need to group my date by using this condition value.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 11:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324203#M71951</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-01-12T11:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Specific Value for rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324207#M71952</link>
      <description>&lt;P&gt;I haven't run this, as not typing in that test data. &amp;nbsp;For future reference post test data in the form of a datastep:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  retain spec_value 1;
  output;
  if value=35 then spec_value=sum(spec_value,1);
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jan 2017 10:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324207#M71952</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-12T10:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Specific Value for rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324210#M71953</link>
      <description>Many thank. It works:)</description>
      <pubDate>Thu, 12 Jan 2017 11:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324210#M71953</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-01-12T11:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Specific Value for rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324236#M71960</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122878"&gt;@Khaladdin&lt;/a&gt;&amp;nbsp;Please mark the question answered.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 13:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324236#M71960</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-12T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Specific Value for rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324237#M71961</link>
      <description>I accept the answer as a right answer. Is that enough? &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;</description>
      <pubDate>Thu, 12 Jan 2017 13:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-value-based-on-other-value/m-p/324237#M71961</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-01-12T13:37:41Z</dc:date>
    </item>
  </channel>
</rss>

