<?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: Does anyone know how to eliminate scientific notation from proc compare list file. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-how-to-eliminate-scientific-notation-from-proc/m-p/137884#M27867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the dataset step you can change the format for the variables. Currently it is likely that the NDIF has a format like best8. Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format ndif f16.0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you may have enough differences that NDIF is actually trying to exceed SAS precision.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2014 22:51:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-10-22T22:51:17Z</dc:date>
    <item>
      <title>Does anyone know how to eliminate scientific notation from proc compare list file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-how-to-eliminate-scientific-notation-from-proc/m-p/137883#M27866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all thanks for reading my question. &lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;Here is what I want to do:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I want to know the number of observation changed between two identical datasets for each variable. &lt;/P&gt;&lt;P&gt;I want to create an excel report showing the variable name and the number of differences. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;Here is what I’m doing&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;I used proc compare to get the number of differences&lt;SPAN style="color: #1f497d;"&gt; (Ndif)&lt;/SPAN&gt;. I created a sas datasets using ODS and extract the numbers from the dataset using data step. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;Here is the problem&lt;/EM&gt;: &lt;/P&gt;&lt;P&gt;Proc compare is generating scientific notation for&amp;nbsp; Number of differences (Ndif) ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;How can I have proc compare to display the full number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;NOTE&lt;/STRONG&gt;: Both datasets have 8 million observation and 500 variables.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I tried to use merge statement but it wasn’t efficient. &lt;/P&gt;&lt;P&gt;Here is a sample code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing close ;&lt;/P&gt;&lt;P&gt;ods output compsum=outputsum;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt; proc compare base=work.dsn1 compare=work.dsn2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxprint=(100,500) novalues&amp;nbsp; listequalvar;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&amp;nbsp;&amp;nbsp; id loan_key;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods output close ;&lt;/P&gt;&lt;P&gt;ods listing ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data outdir.summary;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set indir.outputsum;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length Field_Name $40;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; batch=left(compbl(batch));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (index(batch, 'NUM') gt 0 or index(batch, 'CHAR') gt 0) and type ne 'h' then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if countw(batch, ' ') = 3 or countw(batch, ' ') = 4 then &amp;amp;curr_count. = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if scan(batch, 2) eq 'NUM'&amp;nbsp; and countw(batch, ' ') = 7 then &amp;amp;curr_count. = scanq(batch, 5) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if scan(batch, 2) eq 'NUM'&amp;nbsp; and countw(batch, ' ') = 6 then &amp;amp;curr_count. = scanq(batch, 4);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if scan(batch, 2) eq 'CHAR' and countw(batch, ' ') = 6 then &amp;amp;curr_count. = scanq(batch, 5);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if scan(batch, 2) eq 'CHAR' and countw(batch, ' ') = 5 then &amp;amp;curr_count. = scanq(batch, 4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt; keep Field_Name &amp;amp;curr_count.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&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>Wed, 22 Oct 2014 21:30:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-how-to-eliminate-scientific-notation-from-proc/m-p/137883#M27866</guid>
      <dc:creator>zqkal</dc:creator>
      <dc:date>2014-10-22T21:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to eliminate scientific notation from proc compare list file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-how-to-eliminate-scientific-notation-from-proc/m-p/137884#M27867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the dataset step you can change the format for the variables. Currently it is likely that the NDIF has a format like best8. Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format ndif f16.0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you may have enough differences that NDIF is actually trying to exceed SAS precision.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 22:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-how-to-eliminate-scientific-notation-from-proc/m-p/137884#M27867</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-10-22T22:51:17Z</dc:date>
    </item>
  </channel>
</rss>

