<?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(X,10) EXCEL STYLE FUNCTION ON SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141928#M28497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep as character is better for substr, The precision better said limits to precision will cause nice effects expected above 12 digits, sure above 15 digits. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Oct 2014 13:02:35 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-10-25T13:02:35Z</dc:date>
    <item>
      <title>=RIGHT(X,10) EXCEL STYLE FUNCTION ON SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141923#M28492</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;How can the below excel function coded in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 382px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="228"&gt;&lt;P&gt;VAR01&lt;/P&gt;&lt;/TD&gt;&lt;TD width="154"&gt;&lt;P&gt;VAR02&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;1234567890123&lt;/TD&gt;&lt;TD&gt;=RIGHT(A2,10)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result must be "4567890123".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Olp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 09:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141923#M28492</guid>
      <dc:creator>o_p</dc:creator>
      <dc:date>2014-10-25T09:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: =RIGHT(X,10) EXCEL STYLE FUNCTION ON SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141924#M28493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no straightforward equal name function. &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#n0n08xougp40i5n1xw7njpcy0a2b.htm" 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;&amp;nbsp; substr can do the job when you give the position. (length - ... )&lt;/P&gt;&lt;P&gt;There are a lot of functions in SAS it could be your soltion is easier thinking in SAS than in Excel. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 10:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141924#M28493</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-25T10:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: =RIGHT(X,10) EXCEL STYLE FUNCTION ON SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141925#M28494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was character type or numeric type ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;
data _null_;
v1=1234567890123;
v2=mod(v1,10**10);
put v1= best32. v2=;
run;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 12:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141925#M28494</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-10-25T12:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: =RIGHT(X,10) EXCEL STYLE FUNCTION ON SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141926#M28495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is character type.&lt;/P&gt;&lt;P&gt;I modified your code and it became this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;v1='1234567890123';&lt;/P&gt;&lt;P&gt;v2=put(mod(v1,10**10),10.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="176"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="99"&gt;v1&lt;/TD&gt;&lt;TD width="77"&gt;v2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;1234567890123&lt;/TD&gt;&lt;TD class="xl63"&gt;4567890123&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I've had what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick answer.&lt;/P&gt;&lt;P&gt;Olp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 12:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141926#M28495</guid>
      <dc:creator>o_p</dc:creator>
      <dc:date>2014-10-25T12:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: =RIGHT(X,10) EXCEL STYLE FUNCTION ON SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141927#M28496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. if it is character. I would write this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;v1='1234567890123';&lt;/P&gt;&lt;P&gt;v2=substr(strip(v1),length(v1)-9);&lt;/P&gt;&lt;P&gt;put v1= v2= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 12:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141927#M28496</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-10-25T12:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: =RIGHT(X,10) EXCEL STYLE FUNCTION ON SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141928#M28497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep as character is better for substr, The precision better said limits to precision will cause nice effects expected above 12 digits, sure above 15 digits. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 13:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/RIGHT-X-10-EXCEL-STYLE-FUNCTION-ON-SAS/m-p/141928#M28497</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-25T13:02:35Z</dc:date>
    </item>
  </channel>
</rss>

