<?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: A numeric format with blanks between 3 digits in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129873#M35382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your second alternative, it could be accomplished using the nlnum. format, just be sure to have the appropriate locale set.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/nlsref/63072/HTML/default/viewer.htm#p1sunvzyp4dw9nn1paddq0gmnhwa.htm" title="https://support.sas.com/documentation/cdl/en/nlsref/63072/HTML/default/viewer.htm#p1sunvzyp4dw9nn1paddq0gmnhwa.htm"&gt;https://support.sas.com/documentation/cdl/en/nlsref/63072/HTML/default/viewer.htm#p1sunvzyp4dw9nn1paddq0gmnhwa.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2012 11:25:19 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2012-11-19T11:25:19Z</dc:date>
    <item>
      <title>A numeric format with blanks between 3 digits</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129872#M35381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think most of you aware of a format COMMAw.d which prints number, say, 123456789.12 as&lt;/P&gt;&lt;P&gt;123,456,789.12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to find quite similiar format which will print the same number in a manner&lt;/P&gt;&lt;P&gt;123 456 789.12&lt;/P&gt;&lt;P&gt;or even&lt;/P&gt;&lt;P&gt;123 456 789,12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I haven't find built in one I tried to create picture by myself using &lt;STRONG&gt;proc format&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc format;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; picture test low-high='00 000 000 000 000.00';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;o&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay, it seems to work for the number I chose, but what about 20 digit length numbers?&lt;/P&gt;&lt;P&gt;According to SAS Help, I can't use picture string with more than 16 digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What to do in this situation? (P.s. Comma. format works fine with up to 40 digits).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 11:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129872#M35381</guid>
      <dc:creator>ghastly_kitten</dc:creator>
      <dc:date>2012-11-19T11:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: A numeric format with blanks between 3 digits</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129873#M35382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your second alternative, it could be accomplished using the nlnum. format, just be sure to have the appropriate locale set.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/nlsref/63072/HTML/default/viewer.htm#p1sunvzyp4dw9nn1paddq0gmnhwa.htm" title="https://support.sas.com/documentation/cdl/en/nlsref/63072/HTML/default/viewer.htm#p1sunvzyp4dw9nn1paddq0gmnhwa.htm"&gt;https://support.sas.com/documentation/cdl/en/nlsref/63072/HTML/default/viewer.htm#p1sunvzyp4dw9nn1paddq0gmnhwa.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 11:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129873#M35382</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-11-19T11:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: A numeric format with blanks between 3 digits</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129874#M35383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of things to note&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Windows and Unix SAS (unless I blinked and missed the upgrade) use the IEEE system of representing floating point numbers in 8 bytes.&amp;nbsp; This restricts the accuracy of representing any integer to just short of 16 digits.&amp;nbsp; MS Excel has the same limitation - try entering a 16 digit number and it will truncate the last digit to zero.&amp;nbsp; SAS is better behaved but anything after the first 15 digits in your format cannot be relied on.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;Picture formats with decimals do not round to nearest decimal.&amp;nbsp; Instead they always round down.&amp;nbsp; This can catch you out because what looks like 12345.6700 when you view your table using best12.4 may be a tiny amount short of that and picture would represent it as 12345.6699.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle uses a 12 byte internal representation for numeric values so you commonly see 23 digits specified.&amp;nbsp; I believe you can have extended precision in FORTRAN, if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard in Oz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 11:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129874#M35383</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2012-11-19T11:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: A numeric format with blanks between 3 digits</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129875#M35384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any hint about specific locale?&lt;/P&gt;&lt;P&gt;I have Russia_Russian, but it's still uses comma as a 3digit separator, and I need a blank space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 12:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129875#M35384</guid>
      <dc:creator>ghastly_kitten</dc:creator>
      <dc:date>2012-11-19T12:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: A numeric format with blanks between 3 digits</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129876#M35385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweden has blanks... (sv_SE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 12:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129876#M35385</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-11-19T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: A numeric format with blanks between 3 digits</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129877#M35386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've totally forgot about the 8 byte limitation for floats... Despite of seeing this fact in every computer science course I've ever taken.&lt;/P&gt;&lt;P&gt;Actually, I don't really need such an accuracy, I just need the format that will be universal (like any internal format).&lt;/P&gt;&lt;P&gt;So I can use it with numbers of different power (assuming the power of a column is the same through the dataset).&lt;/P&gt;&lt;P&gt;I.e. when I'm using a picture for the format, the number of digit selectors must be &lt;STRONG&gt;16&lt;/STRONG&gt;, but the place of decimal separator "." is predefined.&lt;/P&gt;&lt;P&gt;And that's a problem, because for different powers of the number (that I want to print) I'll need to redefine the format in order to have 16 digits and a "." in appropriate place. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;1234567890.123456 and&amp;nbsp; 123456789012345.6&lt;/P&gt;&lt;P&gt;I can use CommaW.D to set the correct formatting (without using the redifinition of format).&lt;/P&gt;&lt;P&gt;I can't use any picture created by &lt;STRONG&gt;proc format, &lt;/STRONG&gt; because in both numbers, independently of (w.d), some part will be truncated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 12:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129877#M35386</guid>
      <dc:creator>ghastly_kitten</dc:creator>
      <dc:date>2012-11-19T12:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: A numeric format with blanks between 3 digits</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129878#M35387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;I wonder why Russian has commas... It's a question for SAS support: it must be blanks for digit separating and a comma for decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;upd. I used NLNUM. instead of NLNUMI for my locale. And it worked.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LinusH, thanks anyway!&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 13:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-numeric-format-with-blanks-between-3-digits/m-p/129878#M35387</guid>
      <dc:creator>ghastly_kitten</dc:creator>
      <dc:date>2012-11-19T13:01:17Z</dc:date>
    </item>
  </channel>
</rss>

