<?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: Displaying exact value in BASE SAS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115610#M10221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a known SAS limitation, with a recent discussion here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.sas.com/thread/48679"&gt;https://communities.sas.com/thread/48679&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Aug 2013 18:37:21 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2013-08-25T18:37:21Z</dc:date>
    <item>
      <title>Displaying exact value in BASE SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115605#M10216</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;SPAN style="font-size: 10pt;"&gt;I notice when i use SAS base, it will round the figure if it is more than 18 digit. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any setting in server/client machine if we want to show exact value? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice. Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are the sample code i use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test; &lt;/P&gt;&lt;P&gt;format b best32.; &lt;/P&gt;&lt;P&gt;format d best32.; &lt;/P&gt;&lt;P&gt;format f best32.; &lt;/P&gt;&lt;P&gt;x = '0010000000130000123'; &lt;/P&gt;&lt;P&gt;y = '001000000013000012'; &lt;/P&gt;&lt;P&gt;z = '00100000001300001'; &lt;/P&gt;&lt;P&gt;len1 = length(x); &lt;/P&gt;&lt;P&gt;len2 = length(y); &lt;/P&gt;&lt;P&gt;len3 = length(z); &lt;/P&gt;&lt;P&gt;b = input(x, best32.); &lt;/P&gt;&lt;P&gt;d = input(y, best32.); &lt;/P&gt;&lt;P&gt;f = input(z, best32.); &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11410i9755E810BF8287F6/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Result1.jpg" title="Result1.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 02:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115605#M10216</guid>
      <dc:creator>mikesatriaevo</dc:creator>
      <dc:date>2013-08-20T02:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying exact value in BASE SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115606#M10217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are limitations on the storage of large numbers. See the discussion on numeric precision at &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695157.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695157.htm"&gt;SAS(R) 9.2 Language Reference: Concepts, Second Edition&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you aren't using the number for mathematical operations, why not leave it as text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing mathematical operations, then SAS floating point representation might be good enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you insist on storing the entire number, try the w.d informat. And don't use the BEST format. The downside is increased disk space. You could use the COMPRESSION=BINARY option to offset this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;format b c d 32.;&lt;/P&gt;&lt;P&gt;x = '0010000000130000123';&lt;/P&gt;&lt;P&gt;y = '001000000013000012';&lt;/P&gt;&lt;P&gt;z = '00100000001300001';&lt;/P&gt;&lt;P&gt;len1 = length(x);&lt;/P&gt;&lt;P&gt;len2 = length(y);&lt;/P&gt;&lt;P&gt;len3 = length(z);&lt;/P&gt;&lt;P&gt;b = input(x, 32.);&lt;/P&gt;&lt;P&gt;c = input(y, 32.);&lt;/P&gt;&lt;P&gt;d = input(z, 32.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 05:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115606#M10217</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2013-08-20T05:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying exact value in BASE SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115607#M10218</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;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;After added command option COMPRESS=BINARY; in our script and the outcome still the same, still round the value to 0010000000130000124.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm using SAS 9.1.3. Is there any difference between SAS 9.2 and SAS 9.1.3?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 08:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115607#M10218</guid>
      <dc:creator>mikesatriaevo</dc:creator>
      <dc:date>2013-08-20T08:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying exact value in BASE SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115608#M10219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mikesatriavo,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you read teh reference fugue had given? &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/64801/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/64801/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm"&gt;SAS(R) 9.4 Language Reference: Concepts&lt;/A&gt; (Numeric Precision in SAS Software). The title here is wrong it is not SAS related as it applies to all kind of floating processing (flops). It is IEE standard.&lt;/P&gt;&lt;P&gt;This is something as fundamental to calculations for a very very long time. Floatings are by definition not precise.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Compressing is just a method for saving dasd space doesn't have any effect to numeric precision (length max=8 has).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The remark on handling as character is also sensible. &lt;/P&gt;&lt;P&gt;- The average on female=1 male=2 makes no sense as it is a classification. &lt;/P&gt;&lt;P&gt;- IBAN numbers are even no numbers.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The way of limiting to numbers at sme areas is going back to the old hollerith age having visible 10 columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working on a DBMS with those many more datatypes, there is a new language added in SAS (9.3 last uypdates, 9.4) "PROC DS2" &lt;A href="http://support.sas.com/documentation/cdl/en/proc/64787/HTML/default/viewer.htm#n08hc15x330v75n1vjw9rzlbhe84.htm"&gt;http://support.sas.com/documentation/cdl/en/proc/64787/HTML/default/viewer.htm#n08hc15x330v75n1vjw9rzlbhe84.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 09:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115608#M10219</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-08-20T09:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying exact value in BASE SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115609#M10220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! What kind of data or problem do you have, since you consider that the data values have 18 correct digits ?&lt;BR /&gt;In real life the relative error in the numbers is often quite big. I would guess that it is very unusual to have more than 7 or 8 correct digits in measured values. Even in cases where you have many correct digits, they are often not of interest.&lt;BR /&gt; Of course Bank account numbers etc. are longer - but they are not measured values. They should be stored as characters.&lt;BR /&gt;Jaap and others above have given very good and detailed technical answers.&lt;/P&gt;&lt;P&gt;/ Br Anders Sköllermo (Andrew Skollermo in English)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Aug 2013 16:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115609#M10220</guid>
      <dc:creator>AndersS</dc:creator>
      <dc:date>2013-08-25T16:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying exact value in BASE SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115610#M10221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a known SAS limitation, with a recent discussion here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.sas.com/thread/48679"&gt;https://communities.sas.com/thread/48679&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Aug 2013 18:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Displaying-exact-value-in-BASE-SAS/m-p/115610#M10221</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-08-25T18:37:21Z</dc:date>
    </item>
  </channel>
</rss>

