<?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: Strange proc freq resutls? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Strange-proc-freq-resutls/m-p/125777#M34601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It means your data isn't the exact same, even though it looks like it is, usually because of extra spaces. &lt;/P&gt;&lt;P&gt;Try running a compbl or trim function on the arrear_bands to remove any leading or trailing blanks and re-run the proc freq. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 20:18:15 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-04-30T20:18:15Z</dc:date>
    <item>
      <title>Strange proc freq resutls?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Strange-proc-freq-resutls/m-p/125775#M34599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Forum,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Scenario 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have imported a Access dataset (lets call Access_have_1) into SAS. Lets call the created SAS data set as have_1.&lt;/P&gt;&lt;P&gt;Then just stacked it with an existing sas dataset called have_2.&lt;/P&gt;&lt;P&gt;Then created want_1 sas dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want_1;&lt;/P&gt;&lt;P&gt;set have_1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have_2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Scenario 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have first exported the same Access_have_1 dataset above as a CSV file.&lt;/P&gt;&lt;P&gt;Then read the CSV file into SAS and created the SAS data set named have_3.&lt;/P&gt;&lt;P&gt;Then stacked like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want_2;&lt;/P&gt;&lt;P&gt;set have_3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have_2; /*exisiting SAS dataset*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN style="color: #ff00ff; text-decoration: underline;"&gt;Question:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I got Want_1 and Want_2 files as identical two files.&lt;/P&gt;&lt;P&gt;However, when I ran proc freq for a variable called "Arrears_history" in both files one keeps giving strange&lt;/P&gt;&lt;P&gt;freq resutls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario 1 gives this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data =want_1;&lt;/P&gt;&lt;P&gt; tables arrears_band/list missing;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 217px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl71" height="35" rowspan="2" style="border-bottom: #4f493b 1pt solid;" width="127"&gt;Arrears_Band&lt;/TD&gt;&lt;TD class="xl67" rowspan="2" style="border-bottom: #4f493b 1pt solid;" width="90"&gt;Frequency&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="18"&gt; &lt;/TD&gt;&lt;TD class="xl65"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl73" height="18"&gt;&lt;SPAN style="color: #0000ff;"&gt;1 - 30&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl74"&gt;&lt;SPAN style="color: #0000ff;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="18"&gt;&lt;SPAN style="color: #0000ff;"&gt;30 - 60&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl74"&gt;&lt;SPAN style="color: #0000ff;"&gt;25&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="18"&gt;&lt;SPAN style="color: #0000ff;"&gt;60 - 90&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl74"&gt;&lt;SPAN style="color: #0000ff;"&gt;5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl76" height="18"&gt;&lt;SPAN style="color: #ff0000;"&gt;1 - 30&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl77"&gt;&lt;SPAN style="color: #ff0000;"&gt;15&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl78" height="18"&gt;&lt;SPAN style="color: #ff0000;"&gt;30 - 60&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl77"&gt;&lt;SPAN style="color: #ff0000;"&gt;15&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl78" height="18"&gt;&lt;SPAN style="color: #ff0000;"&gt;60 - 90&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl77"&gt;&lt;SPAN style="color: #ff0000;"&gt;8&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="18"&gt;90 +&lt;/TD&gt;&lt;TD class="xl65"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="18"&gt;Current&lt;/TD&gt;&lt;TD class="xl65"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17"&gt;NPNA&lt;/TD&gt;&lt;TD class="xl66"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario 2 gives this table.&lt;/P&gt;&lt;P&gt;proc freq data =want_2;&lt;/P&gt;&lt;P&gt; tables arrears_band/list missing;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 217px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl71" height="35" rowspan="2" style="border-bottom: #4f493b 1pt solid;" width="127"&gt;Arrears_Band&lt;/TD&gt;&lt;TD class="xl67" rowspan="2" style="border-bottom: #4f493b 1pt solid;" width="90"&gt;Frequency&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="18"&gt; &lt;/TD&gt;&lt;TD class="xl65"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl73" height="18"&gt;&lt;STRONG style="color: #800080;"&gt;1 - 30&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl74"&gt;&lt;STRONG style="color: #800080;"&gt;25&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="18"&gt;&lt;STRONG style="color: #800080;"&gt;30 - 60&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl74"&gt;&lt;STRONG style="color: #800080;"&gt;40&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="18"&gt;&lt;STRONG style="color: #800080;"&gt;60 - 90&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl74"&gt;&lt;STRONG style="color: #800080;"&gt;13&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="18"&gt;90 +&lt;/TD&gt;&lt;TD class="xl65"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="18"&gt;Current&lt;/TD&gt;&lt;TD class="xl65"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17"&gt;NPNA&lt;/TD&gt;&lt;TD class="xl66"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep trying several times still the same resutls are recurring.&lt;/P&gt;&lt;P&gt;You will see blue color and red color in the table under scenario 1 adds to meroon color figures in scenario 2 table.&lt;/P&gt;&lt;P&gt;Actually scenario 2 freq table is the correct one but how come scenario 1 table is strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;&lt;P&gt;Mirisage&lt;/P&gt;&lt;P&gt;(p.s. I cannot provide the data set as they are several thousands)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 19:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Strange-proc-freq-resutls/m-p/125775#M34599</guid>
      <dc:creator>Mirisage</dc:creator>
      <dc:date>2013-04-30T19:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange proc freq resutls?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Strange-proc-freq-resutls/m-p/125776#M34600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run Proc Contents on have_1 and have_2. See if the properties for Arrears_band are different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 19:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Strange-proc-freq-resutls/m-p/125776#M34600</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-04-30T19:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange proc freq resutls?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Strange-proc-freq-resutls/m-p/125777#M34601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It means your data isn't the exact same, even though it looks like it is, usually because of extra spaces. &lt;/P&gt;&lt;P&gt;Try running a compbl or trim function on the arrear_bands to remove any leading or trailing blanks and re-run the proc freq. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 20:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Strange-proc-freq-resutls/m-p/125777#M34601</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-30T20:18:15Z</dc:date>
    </item>
  </channel>
</rss>

