<?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: Increment numeric value by one for each row in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Increment-numeric-value-by-one-for-each-row/m-p/805257#M40478</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  new_num_col = num_col + _n_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 31 Mar 2022 13:21:27 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2022-03-31T13:21:27Z</dc:date>
    <item>
      <title>Increment numeric value by one for each row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Increment-numeric-value-by-one-for-each-row/m-p/805251#M40476</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a numeric column which has all rows equal to 810,225.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a new column which increments this value by one for each row. So row one would equal 810,225 row 2 would be 810,226, row 3 would be 810,227 and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone provide some advice as the best way to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 12:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Increment-numeric-value-by-one-for-each-row/m-p/805251#M40476</guid>
      <dc:creator>Sean_OConnor</dc:creator>
      <dc:date>2022-03-31T12:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Increment numeric value by one for each row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Increment-numeric-value-by-one-for-each-row/m-p/805253#M40477</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 set have;
 new_value = old_Value + ( _N_ - 1 );
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 12:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Increment-numeric-value-by-one-for-each-row/m-p/805253#M40477</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-03-31T12:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Increment numeric value by one for each row</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Increment-numeric-value-by-one-for-each-row/m-p/805257#M40478</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  new_num_col = num_col + _n_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Mar 2022 13:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Increment-numeric-value-by-one-for-each-row/m-p/805257#M40478</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-03-31T13:21:27Z</dc:date>
    </item>
  </channel>
</rss>

