<?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 confine number of digits of a number in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-confine-number-of-digits-of-a-number-in-SAS/m-p/108612#M22591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is numeric, and I don't want to create a new variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to merge two tables based on A (one table displays with zero, one table does not ), will changing formating work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 20:18:53 GMT</pubDate>
    <dc:creator>cindyforest7</dc:creator>
    <dc:date>2013-10-09T20:18:53Z</dc:date>
    <item>
      <title>How to confine number of digits of a number in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-confine-number-of-digits-of-a-number-in-SAS/m-p/108610#M22589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of numbers under variable A:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;45&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;4567&lt;/P&gt;&lt;P&gt;234&lt;/P&gt;&lt;P&gt;33&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;00000001&lt;/P&gt;&lt;P&gt;00000003&lt;/P&gt;&lt;P&gt;00000045&lt;/P&gt;&lt;P&gt;00000005&lt;/P&gt;&lt;P&gt;00004567&lt;/P&gt;&lt;P&gt;00000234&lt;/P&gt;&lt;P&gt;00000033&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each number now will have 8 digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cindy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 19:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-confine-number-of-digits-of-a-number-in-SAS/m-p/108610#M22589</guid>
      <dc:creator>cindyforest7</dc:creator>
      <dc:date>2013-10-09T19:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to confine number of digits of a number in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-confine-number-of-digits-of-a-number-in-SAS/m-p/108611#M22590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is A numeric or character?&lt;/P&gt;&lt;P&gt;If numeric do you actually need a new variable or for it just to appear with leading zeroes? In this case you can just assign a format to display with zeroes: Format a z8. ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If A is character there's a number of ways but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A = put(input(a, best8.),z8.) ; might work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 19:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-confine-number-of-digits-of-a-number-in-SAS/m-p/108611#M22590</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-10-09T19:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to confine number of digits of a number in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-confine-number-of-digits-of-a-number-in-SAS/m-p/108612#M22591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is numeric, and I don't want to create a new variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to merge two tables based on A (one table displays with zero, one table does not ), will changing formating work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 20:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-confine-number-of-digits-of-a-number-in-SAS/m-p/108612#M22591</guid>
      <dc:creator>cindyforest7</dc:creator>
      <dc:date>2013-10-09T20:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to confine number of digits of a number in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-confine-number-of-digits-of-a-number-in-SAS/m-p/108613#M22592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If A is numeric in both SAS tables you should be able to merge the tables without changing anything.&lt;BR /&gt;The internal representation of A (numeric variable) is the same in both tables. The diference in the display should be because of the format in the table: Z8. (with leading zeroes) v.s. 8. or best8. or none (without leading zeroes)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 20:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-confine-number-of-digits-of-a-number-in-SAS/m-p/108613#M22592</guid>
      <dc:creator>CTorres</dc:creator>
      <dc:date>2013-10-09T20:30:10Z</dc:date>
    </item>
  </channel>
</rss>

