<?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: Right function in excel how to convert to sas in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216933#M16296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , &lt;/P&gt;&lt;P&gt;thank you so much it worked &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 14:53:07 GMT</pubDate>
    <dc:creator>chennupriya</dc:creator>
    <dc:date>2015-04-07T14:53:07Z</dc:date>
    <item>
      <title>Right function in excel how to convert to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216928#M16291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HHi ,&lt;/P&gt;&lt;P&gt;i have a coloumn product&lt;/P&gt;&lt;P&gt;whuch has vslues&lt;/P&gt;&lt;P&gt;1 YEAR TERM &lt;/P&gt;&lt;P&gt;10 YEAR TERM&lt;/P&gt;&lt;P&gt;15 YEAR TERM&lt;/P&gt;&lt;P&gt;UNKNOWN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hiw to extract the last letter M in 1,10,15 YEAR TERM and how to extract N from unknown &lt;/P&gt;&lt;P&gt;can anyone help &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 21:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216928#M16291</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2015-04-06T21:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Right function in excel how to convert to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216929#M16292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There might be a more direct route, but the following will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat product $12.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input product &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; newfield=substr(reverse(strip(product)),1,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 YEAR TERM&lt;/P&gt;&lt;P&gt;10 YEAR TERM&lt;/P&gt;&lt;P&gt;15 YEAR TERM&lt;/P&gt;&lt;P&gt;UNKNOWN&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 21:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216929#M16292</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-04-06T21:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Right function in excel how to convert to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216930#M16293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat product $12.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input product &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; newfield=substrn(product,lengthn(product),1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 YEAR TERM&lt;/P&gt;&lt;P&gt;10 YEAR TERM&lt;/P&gt;&lt;P&gt;15 YEAR TERM&lt;/P&gt;&lt;P&gt;UNKNOWN&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 22:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216930#M16293</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-04-06T22:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Right function in excel how to convert to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216931#M16294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there's multiple ways to achieve this. Here is one you can try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;substr( product , length( product) , 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For documentation of the used functions please see,&lt;/P&gt;&lt;P&gt;SUBSTR()&amp;nbsp; -&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#n0n08xougp40i5n1xw7njpcy0a2b.htm" style="font-size: 10pt; line-height: 1.5em;" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#n0n08xougp40i5n1xw7njpcy0a2b.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;LENGTH()&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#n0f6jve4kdxnh1n1m7c82fhosgih.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#n0f6jve4kdxnh1n1m7c82fhosgih.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 22:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216931#M16294</guid>
      <dc:creator>ssftik</dc:creator>
      <dc:date>2015-04-06T22:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Right function in excel how to convert to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216932#M16295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat product $20.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input product &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; newfield=prxchange('s/.*(\w)/$1/',-1,product);&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 YEAR TERM&lt;/P&gt;&lt;P&gt;10 YEAR TERM&lt;/P&gt;&lt;P&gt;15 YEAR TERM&lt;/P&gt;&lt;P&gt;UNKNOWN&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 23:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216932#M16295</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2015-04-06T23:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Right function in excel how to convert to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216933#M16296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , &lt;/P&gt;&lt;P&gt;thank you so much it worked &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 14:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216933#M16296</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2015-04-07T14:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Right function in excel how to convert to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216934#M16297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you examine your results using PROC CONTENTS, you will see that the length of your new variable is not necessarily what you would expect.&amp;nbsp; If you want it to be defined as 1 character long, add a LENGTH statement first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;length newfield $ 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having done that, there are other possibilities for extraction such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newfield = left(reverse(product));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216934#M16297</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-04-07T15:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Right function in excel how to convert to sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216935#M16298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option to get the length right would use the CHAR function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;lastchar = char(product,length(product));&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Right-function-in-excel-how-to-convert-to-sas/m-p/216935#M16298</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-04-07T16:06:16Z</dc:date>
    </item>
  </channel>
</rss>

