<?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 creating groups in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/creating-groups/m-p/257945#M49580</link>
    <description>&lt;P&gt;i want to create a group which has A B C D in the last&amp;nbsp;letter of word as one group and E, F, G H as other group in a variable&lt;/P&gt;
&lt;P&gt;var2&lt;/P&gt;
&lt;P&gt;DRA-04U-A&lt;/P&gt;
&lt;P&gt;DRA-099Y-B&lt;/P&gt;
&lt;P&gt;DRd-989-E&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in this case i want to create a new variable which has A,B in one group and E in another group and so on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2016 12:55:58 GMT</pubDate>
    <dc:creator>vraj1</dc:creator>
    <dc:date>2016-03-21T12:55:58Z</dc:date>
    <item>
      <title>creating groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-groups/m-p/257945#M49580</link>
      <description>&lt;P&gt;i want to create a group which has A B C D in the last&amp;nbsp;letter of word as one group and E, F, G H as other group in a variable&lt;/P&gt;
&lt;P&gt;var2&lt;/P&gt;
&lt;P&gt;DRA-04U-A&lt;/P&gt;
&lt;P&gt;DRA-099Y-B&lt;/P&gt;
&lt;P&gt;DRd-989-E&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in this case i want to create a new variable which has A,B in one group and E in another group and so on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 12:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-groups/m-p/257945#M49580</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2016-03-21T12:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: creating groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-groups/m-p/257948#M49583</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the last letter in your &lt;STRONG&gt;var &lt;/STRONG&gt;variable determines the group then you can get it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;infile datalines;&lt;BR /&gt;input var2 $50.;&lt;BR /&gt;datalines;&lt;BR /&gt;DRA-04U-A&lt;BR /&gt;DRA-099Y-B&lt;BR /&gt;DRd-989-E&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;group=scan(var2,-1,"-");&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 13:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-groups/m-p/257948#M49583</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-03-21T13:10:07Z</dc:date>
    </item>
  </channel>
</rss>

