<?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 Read string in revers in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Read-string-in-revers/m-p/617646#M19101</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please assist me to write algorithm for the below task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input raw data:&lt;/P&gt;&lt;P&gt;String = "Suresh Kumar thangaraj"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output required:&lt;/P&gt;&lt;P&gt;New_String = "hseruS ramuK jaragnaht"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my output;&lt;/P&gt;&lt;P&gt;My output;&lt;/P&gt;&lt;P&gt;"jaragnaht ramuK hseruS";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Code:&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;length New_string $30;&lt;BR /&gt;string = "Suresh Kumar thangaraj";&lt;BR /&gt;L = length(string);&lt;BR /&gt;do i = 1 to L;&lt;BR /&gt;substr(New_string,i,1) = substr(string,L+1-i,1);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh Kumar&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2020 02:48:49 GMT</pubDate>
    <dc:creator>tsureshinvites</dc:creator>
    <dc:date>2020-01-16T02:48:49Z</dc:date>
    <item>
      <title>Read string in revers</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Read-string-in-revers/m-p/617646#M19101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please assist me to write algorithm for the below task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input raw data:&lt;/P&gt;&lt;P&gt;String = "Suresh Kumar thangaraj"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output required:&lt;/P&gt;&lt;P&gt;New_String = "hseruS ramuK jaragnaht"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my output;&lt;/P&gt;&lt;P&gt;My output;&lt;/P&gt;&lt;P&gt;"jaragnaht ramuK hseruS";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Code:&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;length New_string $30;&lt;BR /&gt;string = "Suresh Kumar thangaraj";&lt;BR /&gt;L = length(string);&lt;BR /&gt;do i = 1 to L;&lt;BR /&gt;substr(New_string,i,1) = substr(string,L+1-i,1);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh Kumar&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 02:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Read-string-in-revers/m-p/617646#M19101</guid>
      <dc:creator>tsureshinvites</dc:creator>
      <dc:date>2020-01-16T02:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read string in revers</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Read-string-in-revers/m-p/617654#M19105</link>
      <description>&lt;P&gt;YOU want to keep word order, but reverse all the letters in each word.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YOu need to know:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;How many words are in STRING&amp;nbsp; (take a look at the &lt;STRONG&gt;COUNTW&lt;/STRONG&gt; function).&lt;/LI&gt;
&lt;LI&gt;How to loop over each word one at a time&amp;nbsp; (consider &lt;STRONG&gt;DO W=1 to &lt;EM&gt;number_of_words_in_STRING&lt;/EM&gt;&lt;/STRONG&gt;).&lt;/LI&gt;
&lt;LI&gt;How to extract one word at a time from STRING (look at the &lt;STRONG&gt;SCAN&lt;/STRONG&gt; function)&lt;/LI&gt;
&lt;LI&gt;How to reverse a sequence of text in the word&amp;nbsp; (look at the &lt;STRONG&gt;REVERSE&lt;/STRONG&gt; function)&lt;/LI&gt;
&lt;LI&gt;How to concatenate (with space separation) each reversed word, one at a time into NEW_STRING&amp;nbsp; (look at the &lt;STRONG&gt;CATX&lt;/STRONG&gt; function).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's all about the journey.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 03:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Read-string-in-revers/m-p/617654#M19105</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-01-16T03:11:02Z</dc:date>
    </item>
  </channel>
</rss>

