<?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 to get the last 2 digits from a numeric value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/298593#M267107</link>
    <description>&lt;P&gt;Worked great.I wanted to get the output where the the numeric values in a column are not incremented by 100.Example:I want to see where the values are 150,192 etc.The valid values are only 100,200,300... etc. I used in proc sql as&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mod(a.XXXXX_AM,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;)&amp;lt;&amp;gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0 and worked great.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2016 10:23:33 GMT</pubDate>
    <dc:creator>aswadhama</dc:creator>
    <dc:date>2016-09-15T10:23:33Z</dc:date>
    <item>
      <title>How to get the last 2 digits from a numeric value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/205263#M267103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the last 2 digits from a numeric field. Can you please assist:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the value is 101234 then I want my output to be 34.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 08:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/205263#M267103</guid>
      <dc:creator>Avenue</dc:creator>
      <dc:date>2015-04-28T08:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last 2 digits from a numeric value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/205264#M267104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're looking for the modulo-function: mod(101234,100) gives 34.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 08:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/205264#M267104</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2015-04-28T08:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last 2 digits from a numeric value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/205265#M267105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avenue,&lt;/P&gt;&lt;P&gt;following code will assist you to resolve your problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x1=101234;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x2=INPUT(SUBSTR(PUT(x1,best.),LENGTH(PUT(x1,best.))-2+1),2.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; PUT x2=;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 08:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/205265#M267105</guid>
      <dc:creator>zahirraihan</dc:creator>
      <dc:date>2015-04-28T08:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last 2 digits from a numeric value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/205266#M267106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a charm. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 08:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/205266#M267106</guid>
      <dc:creator>Avenue</dc:creator>
      <dc:date>2015-04-28T08:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last 2 digits from a numeric value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/298593#M267107</link>
      <description>&lt;P&gt;Worked great.I wanted to get the output where the the numeric values in a column are not incremented by 100.Example:I want to see where the values are 150,192 etc.The valid values are only 100,200,300... etc. I used in proc sql as&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; mod(a.XXXXX_AM,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;)&amp;lt;&amp;gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0 and worked great.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 10:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-last-2-digits-from-a-numeric-value/m-p/298593#M267107</guid>
      <dc:creator>aswadhama</dc:creator>
      <dc:date>2016-09-15T10:23:33Z</dc:date>
    </item>
  </channel>
</rss>

