<?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: new column with customer  rank in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/new-column-with-customer-rank/m-p/514686#M138798</link>
    <description>&lt;P&gt;Do like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set tbl1;
   by ID notsorted;
   if first.ID then rank+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Nov 2018 07:26:17 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-11-20T07:26:17Z</dc:date>
    <item>
      <title>new column with customer  rank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/new-column-with-customer-rank/m-p/514683#M138795</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;For the following data set I &amp;nbsp;want to add a new column.&lt;/P&gt;
&lt;P&gt;For first customer ID it will get value 1&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;second&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;customer ID it will get value&amp;nbsp;2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So the new column will get values:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data tbl1;
input ID x;
cards;
123456 2
123456 4
123456 6
212321 8
212321 10
212321 12
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Nov 2018 07:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/new-column-with-customer-rank/m-p/514683#M138795</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-11-20T07:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: new column with customer  rank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/new-column-with-customer-rank/m-p/514686#M138798</link>
      <description>&lt;P&gt;Do like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set tbl1;
   by ID notsorted;
   if first.ID then rank+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Nov 2018 07:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/new-column-with-customer-rank/m-p/514686#M138798</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-11-20T07:26:17Z</dc:date>
    </item>
  </channel>
</rss>

