<?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: How We Sort a String In SAS ??? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627416#M185214</link>
    <description>&lt;P&gt;I Really thankyou for your work..Please leave that america question if you have no answer i think that question will wrong.....please help in this my last question...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to create 10th table in SAS???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want output like&amp;nbsp; 10*1=10&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10*2=20&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10*3=30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10*10=100&lt;/P&gt;&lt;P&gt;like this please write a programme !!!!!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 06:43:40 GMT</pubDate>
    <dc:creator>Mohan_Reddy</dc:creator>
    <dc:date>2020-02-26T06:43:40Z</dc:date>
    <item>
      <title>How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627133#M185048</link>
      <description>&lt;P&gt;Data Have;&lt;/P&gt;&lt;P&gt;String="meiraca";&lt;/P&gt;&lt;P&gt;run;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through this data set can i get output string name as "america" ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give a solution for this !!!!!!!&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 09:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627133#M185048</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-25T09:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627134#M185049</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313738"&gt;@Mohan_Reddy&lt;/a&gt;&amp;nbsp;Hi and welcome to the SAS Community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the logic here? The string is not sorted in alphabetical order.. That would give "aaceimr".&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 09:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627134#M185049</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-25T09:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627135#M185050</link>
      <description>&lt;P&gt;Yes Correct what you say sorting...But in my way sort means to get string name America....if you have any answer please provide here..&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 09:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627135#M185050</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-25T09:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627136#M185051</link>
      <description>&lt;P&gt;What if you have the string "meiracam" (one extra 'm')? You can spell 'america' with some of the letters, but it leaves an 'm'..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And what if the letters can not be rearranged into 'america'. Should the string be left untouched, or?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 09:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627136#M185051</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-25T09:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627137#M185052</link>
      <description>&lt;P&gt;No problem you should remove that extra M and through that remaining string please get that America output.....&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 09:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627137#M185052</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-25T09:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627138#M185053</link>
      <description>&lt;P&gt;&lt;SPAN&gt;And what if the letters can not be rearranged into 'america'. Should the string be left untouched, or?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 09:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627138#M185053</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-25T09:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627141#M185056</link>
      <description>&lt;P&gt;Ok No problem...you should consider left untouched also...if any chances to get sort string to "america" please give a solution...&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 09:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627141#M185056</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-25T09:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627157#M185062</link>
      <description>&lt;P&gt;This is a strange requirement. To solve it, you need to count the letters required to create the word you want, in your example something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;countc(source, 'a') &amp;gt;= 2 and countc(source, 'm') &amp;gt;= 1 and countc(source, 'e') &amp;gt;= 1 ...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If all conditions are true, simply set source = 'america'.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 12:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627157#M185062</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-02-25T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627353#M185178</link>
      <description>&lt;P&gt;Close but not working.&amp;nbsp; I could rearrange&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;String="maeirac";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But not the actual string that you posted.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Number the consonants sequentially.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Number the vowels sequentially.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In order, take a vowel, a consonant, a vowel, a consonant, etc.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 22:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627353#M185178</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-02-25T22:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627397#M185204</link>
      <description>&lt;P&gt;Thank You for your information...If you don't mind please write a full programme for solve this question if you have answer...!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ds;&lt;/P&gt;&lt;P&gt;string="&lt;SPAN&gt;maeirac";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you have answer for this question please write a full programme ...!!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 04:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627397#M185204</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-26T04:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627406#M185206</link>
      <description>How To Create Table in SAS ???&lt;BR /&gt;Like 10*1=10&lt;BR /&gt;10*2=20&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;10*10=100&lt;BR /&gt;&lt;BR /&gt;like this i want output..please give a programme for this!!!</description>
      <pubDate>Wed, 26 Feb 2020 06:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627406#M185206</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-26T06:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627414#M185212</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313738"&gt;@Mohan_Reddy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How To Create Table in SAS ???&lt;BR /&gt;Like 10*1=10&lt;BR /&gt;10*2=20&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;10*10=100&lt;BR /&gt;&lt;BR /&gt;like this i want output..please give a programme for this!!!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's not clear to me how your last post relates to anything you were talking about before.&lt;/P&gt;
&lt;P&gt;As for your initial requirement: That's a really very strange one. I could now spend time and write code for exactly the &lt;EM&gt;america&lt;/EM&gt; use case but it wouldn't work for anything else/any other word.&lt;/P&gt;
&lt;P&gt;It would really help if you could explain in more detail what you have and what you need. And then also provide sample data in form of a SAS data step and show us the expected result.&lt;/P&gt;
&lt;P&gt;I'm trying to help you here - and also not waste my time on the wrong solution. And that's also why other people are asking all these questions and are not just throwing some "random" code at you. Sooo... you need to help us a bit more to help you.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 06:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627414#M185212</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-26T06:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627416#M185214</link>
      <description>&lt;P&gt;I Really thankyou for your work..Please leave that america question if you have no answer i think that question will wrong.....please help in this my last question...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to create 10th table in SAS???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want output like&amp;nbsp; 10*1=10&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10*2=20&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10*3=30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10*10=100&lt;/P&gt;&lt;P&gt;like this please write a programme !!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 06:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627416#M185214</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-26T06:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627419#M185216</link>
      <description>&lt;P&gt;Not sure what a "10th table in SAS is" but to "throw" something at you:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
  do i=1 to 10;
    var=10*i;
    string=cats('10*',i,'=',var);
    output;
  end;
  stop;
run;

proc print data=sample;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 162px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36398iE358B7F09BBB8BDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 06:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627419#M185216</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-26T06:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627427#M185222</link>
      <description>Please solve this question !!!&lt;BR /&gt;I have dataset like below...&lt;BR /&gt;&lt;BR /&gt;data ds;&lt;BR /&gt;&lt;BR /&gt;do i=1 to 1000;&lt;BR /&gt;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;stop;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now i want output like&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Using that "i" value create 3 new columns(variables).....One Variable should contain Odd numbers and&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;One variable should contain Even numbers..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Last variable should contain Prime numbers...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please write a programme for this .......</description>
      <pubDate>Wed, 26 Feb 2020 07:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627427#M185222</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-26T07:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: How We Sort a String In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627428#M185223</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313738"&gt;@Mohan_Reddy&lt;/a&gt;&amp;nbsp;This seems like a different question than your original one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please open a new thread instead.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 07:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627428#M185223</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-26T07:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How We separate Odd and Even and Prime numbers in SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627429#M185224</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;&lt;SPAN&gt;I have dataset like below...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;data ds;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do i=1 to 1000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;output;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;stop;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i want output like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using that "i" value create 3 new columns(variables).....One Variable should contain Odd numbers and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One variable should contain Even numbers..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Last variable should contain Prime numbers...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;Please write a programme for this .......&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Feb 2020 07:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627429#M185224</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-26T07:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: How We Separate Odd and Even and Prime numbers In SAS ???</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627430#M185225</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have dataset like below...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;data ds;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do i=1 to 1000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;output;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;stop;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i want output like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using that dataset&amp;nbsp; "i" value create 3 new columns(variables).....One Variable should contain Odd numbers and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One variable should contain Even numbers..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Last variable should contain Prime numbers...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please write a programme for this .......&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 08:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-We-Sort-a-String-In-SAS/m-p/627430#M185225</guid>
      <dc:creator>Mohan_Reddy</dc:creator>
      <dc:date>2020-02-26T08:02:01Z</dc:date>
    </item>
  </channel>
</rss>

