<?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: add trailing zeros in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/add-trailing-zeros/m-p/148191#M39185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;X100?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 20:45:33 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2014-10-29T20:45:33Z</dc:date>
    <item>
      <title>add trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/add-trailing-zeros/m-p/148190#M39184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have to prepare a SAS dataset. I have a census tract field. The final&amp;nbsp; field has to contain 11 digits and should be a character variable. At present, its a numeric variable of default&amp;nbsp; length 8 and best12. format. Some of the numbers are 11 digits and some are 9 digits. Initially , the 11 digit numbers had a 2 digit decimal point (i.e. 123456756.76) . I took of the decimal points using compress function as per requirements of the program. Maybe I should not have done that initially. Now, I need to&amp;nbsp; add 2 trailing zeros to only those values with 9 digits. Is there something I need to do about leading or trailing blanks too.Please advise.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;e.g:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Initial file : numeric data , length 8 and best12. format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 478901347&lt;/P&gt;&lt;P&gt;167528936.67&lt;/P&gt;&lt;P&gt;567893456.78&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 786539269&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;I need:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;47890134700&lt;/P&gt;&lt;P&gt;16752893667&lt;/P&gt;&lt;P&gt;56789345678&lt;/P&gt;&lt;P&gt;78653926900&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 20:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/add-trailing-zeros/m-p/148190#M39184</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2014-10-29T20:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: add trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/add-trailing-zeros/m-p/148191#M39185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;X100?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 20:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/add-trailing-zeros/m-p/148191#M39185</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-10-29T20:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: add trailing zeros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/add-trailing-zeros/m-p/148192#M39186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;duh clearly I was overthinking this and then just convert it to character . I took care of the character issue first and then was looking to add the zeroes.&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 21:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/add-trailing-zeros/m-p/148192#M39186</guid>
      <dc:creator>dr2014</dc:creator>
      <dc:date>2014-10-29T21:33:51Z</dc:date>
    </item>
  </channel>
</rss>

