<?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: Tag a same number for each group in one column in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521358#M4190</link>
    <description>&lt;P&gt;Sorry, sort the dataset by CGscore then by year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sort have;&lt;/P&gt;&lt;P&gt;by CGscore year;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 02:32:53 GMT</pubDate>
    <dc:creator>PhuongNguyen</dc:creator>
    <dc:date>2018-12-14T02:32:53Z</dc:date>
    <item>
      <title>Tag a same number for each group in one column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521349#M4185</link>
      <description>&lt;P&gt;data WORK.HAVE;&lt;BR /&gt;infile datalines dsd truncover;&lt;BR /&gt;input RIC:$6. year:BEST4. CGscore:BEST20. eps:BEST10.;&lt;BR /&gt;format year BEST4. CGscore BEST20. eps BEST10.;&lt;BR /&gt;datalines;&lt;BR /&gt;AAM.HM 2013 67.63 141&lt;BR /&gt;AAM.HM 2014 70.17 192&lt;BR /&gt;AAM.HM 2014 70.17 26&lt;BR /&gt;AAM.HM 2015 67.8 30&lt;BR /&gt;AAM.HM 2016 67.8 43&lt;BR /&gt;ABT.HM 2013 79.15 1331&lt;BR /&gt;ABT.HM 2013 79.15 1269&lt;BR /&gt;ABT.HM 2014 78.81 1959&lt;BR /&gt;ABT.HM 2014 78.81 1787&lt;BR /&gt;ABT.HM 2014 78.81 1768&lt;BR /&gt;ABT.HM 2015 77.12 1381&lt;BR /&gt;ABT.HM 2016 76.61 1083&lt;BR /&gt;ACL.HM 2014 72.54 98&lt;BR /&gt;ACL.HM 2014 72.54 289&lt;BR /&gt;ACL.HM 2016 74.92 264&lt;BR /&gt;ACL.HM 2016 74.92 40&lt;BR /&gt;ACL.HM 2016 74.92 375&lt;BR /&gt;AGF.HM 2013 70.85 607&lt;BR /&gt;AGF.HM 2013 70.85 492&lt;BR /&gt;AGF.HM 2014 64.41 -516&lt;BR /&gt;;;;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the dataset as above, and want to know how many RIC there are by placing a same tag (number or character) within a group of RIC, created in a new column. Simply I want to add another column counting 1 for all AAM.HM of column RIC, and 2 for all ABT.HM of RIC, 3 for all ACL.HM, and so on. Please help.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 01:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521349#M4185</guid>
      <dc:creator>PhuongNguyen</dc:creator>
      <dc:date>2018-12-14T01:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tag a same number for each group in one column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521350#M4186</link>
      <description>It would be more helpful if you could show how your output should look like.</description>
      <pubDate>Fri, 14 Dec 2018 01:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521350#M4186</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2018-12-14T01:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tag a same number for each group in one column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521351#M4187</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WORK.HAVE;
infile datalines  truncover;
input RIC:$6. year CGscore eps;
format year BEST4. CGscore BEST20. eps BEST10.;
datalines;
AAM.HM 2013 67.63 141
AAM.HM 2014 70.17 192
AAM.HM 2014 70.17 26
AAM.HM 2015 67.8 30
AAM.HM 2016 67.8 43
ABT.HM 2013 79.15 1331
ABT.HM 2013 79.15 1269
ABT.HM 2014 78.81 1959
ABT.HM 2014 78.81 1787
ABT.HM 2014 78.81 1768
ABT.HM 2015 77.12 1381
ABT.HM 2016 76.61 1083
ACL.HM 2014 72.54 98
ACL.HM 2014 72.54 289
ACL.HM 2016 74.92 264
ACL.HM 2016 74.92 40
ACL.HM 2016 74.92 375
AGF.HM 2013 70.85 607
AGF.HM 2013 70.85 492
AGF.HM 2014 64.41 -516
;;;;

 data want;
 set have;
 by ric ;
 if first.ric then c+1;
 run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 02:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521351#M4187</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-12-14T02:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tag a same number for each group in one column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521354#M4188</link>
      <description>&lt;P&gt;It works. Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 02:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521354#M4188</guid>
      <dc:creator>PhuongNguyen</dc:creator>
      <dc:date>2018-12-14T02:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tag a same number for each group in one column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521357#M4189</link>
      <description>&lt;P&gt;Hi, and now I sort the dataset by CGscore. And also want to add another column, counting 1 for all same first RICs whichever come first after the sorting, and 2 for all next same RICs,............. Can you help&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223452"&gt;@r_behata&lt;/a&gt;&amp;nbsp;? Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 02:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521357#M4189</guid>
      <dc:creator>PhuongNguyen</dc:creator>
      <dc:date>2018-12-14T02:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tag a same number for each group in one column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521358#M4190</link>
      <description>&lt;P&gt;Sorry, sort the dataset by CGscore then by year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sort have;&lt;/P&gt;&lt;P&gt;by CGscore year;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 02:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Tag-a-same-number-for-each-group-in-one-column/m-p/521358#M4190</guid>
      <dc:creator>PhuongNguyen</dc:creator>
      <dc:date>2018-12-14T02:32:53Z</dc:date>
    </item>
  </channel>
</rss>

