<?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 Sorting of variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sorting-of-variable/m-p/486263#M126500</link>
    <description>I have a variable with values&lt;BR /&gt;NA - a1 b1 c1 a2 b2 c2 a3 b3&lt;BR /&gt;&lt;BR /&gt;I need a new dataset with new variable sorted and old variable should not be sorted as below &lt;BR /&gt;NA - a1 b1 c1 a2 b2 c2 a3 b3&lt;BR /&gt;NA1 - a1 a2 a3 b1 b2 b3 c1 c2&lt;BR /&gt;&lt;BR /&gt;Thanks in advance. &lt;BR /&gt;</description>
    <pubDate>Mon, 13 Aug 2018 06:47:38 GMT</pubDate>
    <dc:creator>NagendraBS</dc:creator>
    <dc:date>2018-08-13T06:47:38Z</dc:date>
    <item>
      <title>Sorting of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-of-variable/m-p/486263#M126500</link>
      <description>I have a variable with values&lt;BR /&gt;NA - a1 b1 c1 a2 b2 c2 a3 b3&lt;BR /&gt;&lt;BR /&gt;I need a new dataset with new variable sorted and old variable should not be sorted as below &lt;BR /&gt;NA - a1 b1 c1 a2 b2 c2 a3 b3&lt;BR /&gt;NA1 - a1 a2 a3 b1 b2 b3 c1 c2&lt;BR /&gt;&lt;BR /&gt;Thanks in advance. &lt;BR /&gt;</description>
      <pubDate>Mon, 13 Aug 2018 06:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-of-variable/m-p/486263#M126500</guid>
      <dc:creator>NagendraBS</dc:creator>
      <dc:date>2018-08-13T06:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-of-variable/m-p/486281#M126504</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Post test data in the form of a datastep!!!&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is NA, is it one variable, a set of variables?&amp;nbsp; If it is one variable, why is it one variable, a variable is to hold one piece of information, hence coding against a variable with multiple pieces of information will be difficult, whereas if each their own its very simple.&lt;/P&gt;
&lt;PRE&gt;data want;
  na1="a1";
  na2="b1";
  na3="c1";
  na4="a2";
  original_na=catx(" ",of na:);
  call sortc(of na:);
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Aug 2018 08:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-of-variable/m-p/486281#M126504</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-13T08:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-of-variable/m-p/486285#M126507</link>
      <description>&lt;P&gt;Do you mean this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort
  data=have (rename=(NA=NA1))
  out=int
;
by NA1;
run;

data want;
merge
  have
  int
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 08:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-of-variable/m-p/486285#M126507</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-13T08:16:54Z</dc:date>
    </item>
  </channel>
</rss>

