<?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: PROC FREQ - Difference between SAS 9. and SAS 9.4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/836982#M330949</link>
    <description>&lt;P&gt;If your output for the Proc freq example using SASHELP.CLASS shows a format of BEST7. then likely there is some other setting your organization has used as I get frequency to have a BEST12. format result with SAS 9.4 M4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That PICTURE you show appears to be from SAS Enterprise Guide. Which version?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS data sets always have a format. In some reports it might not show when it is a default but that depends on a number of factors.&lt;/P&gt;
&lt;P&gt;Depending if the only concern is the Proc Freq Crosstabfreqs or ONEwayfreqs out you could use a modified template that creates the output. The Templates are in SASHELP.Templbase &amp;gt;Base&amp;gt;Freq . You do not want to replace that template but create a copy for use. If you are going to go this approach be careful and follow the example in the Proc Template documentation. Look for "&lt;FONT size="4"&gt;Example 1: Editing a Table Template That a SAS Procedure Uses" as there is a LOT of Proc Template to wade through.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps show the CODE of the Proc Compare you are using. It sounds like your code is using the ERROR option. Perhaps you could change that to WARNING instead. Without knowing exactly what you are concerned with in your compare I can't make much more of a suggestion.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 15:26:23 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-10-05T15:26:23Z</dc:date>
    <item>
      <title>PROC FREQ - Difference between SAS 9. and SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/836968#M330941</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are still using SAS 9.2 (through SEG) and we are starting to work with SAS 9.4 (through SAS Studio).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We noticed a difference when using proc freq procedure :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS 9.2 (calculated columns like Frequency has no format) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenotOry_0-1664980523884.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75912iAA976F04B3FCFBF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenotOry_0-1664980523884.png" alt="BenotOry_0-1664980523884.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenotOry_2-1664980811010.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75915iE6DDC012BF62D476/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenotOry_2-1664980811010.png" alt="BenotOry_2-1664980811010.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS 9.4 (calculated columns like Frequency has format) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenotOry_1-1664980638068.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75914iEE177698AC8AA18C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenotOry_1-1664980638068.png" alt="BenotOry_1-1664980638068.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenotOry_3-1664980911965.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75916i66AD459FEA0FC344/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenotOry_3-1664980911965.png" alt="BenotOry_3-1664980911965.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the procedure used :&lt;/P&gt;&lt;P&gt;ods output CrossTabFreqs(match_all=hold)=_tab_freq;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;tables sex*age / missing;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The consequence is that our SAS Unit tests&amp;nbsp;no longer work properly, they contain a proc compare between tables which fail, come out in error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have exactly same SAS 9.2 behavior on SAS 9.4 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We found a workaround but we'd like to avoid it (many programs might be impacted) :&lt;/P&gt;&lt;P&gt;proc datasets lib=work memtype=data;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;modify _tab_freq;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;attrib percent frequency format=;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;contents data=work._tab_freq;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any idea !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 14:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/836968#M330941</guid>
      <dc:creator>BenoîtOry</dc:creator>
      <dc:date>2022-10-05T14:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ - Difference between SAS 9. and SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/836979#M330948</link>
      <description>&lt;P&gt;Why not just use the normal OUT= dataset instead?&lt;/P&gt;
&lt;P&gt;That does not attach a format to the COUNT.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.class;
   tables sex*age / missing out=freq ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;                Variables in Creation Order

#    Variable    Type    Len    Label

1    Sex         Char      1
2    Age         Num       8
3    COUNT       Num       8    Frequency Count
4    PERCENT     Num       8    Percent of Total Frequency


&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Oct 2022 15:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/836979#M330948</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-05T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ - Difference between SAS 9. and SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/836982#M330949</link>
      <description>&lt;P&gt;If your output for the Proc freq example using SASHELP.CLASS shows a format of BEST7. then likely there is some other setting your organization has used as I get frequency to have a BEST12. format result with SAS 9.4 M4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That PICTURE you show appears to be from SAS Enterprise Guide. Which version?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS data sets always have a format. In some reports it might not show when it is a default but that depends on a number of factors.&lt;/P&gt;
&lt;P&gt;Depending if the only concern is the Proc Freq Crosstabfreqs or ONEwayfreqs out you could use a modified template that creates the output. The Templates are in SASHELP.Templbase &amp;gt;Base&amp;gt;Freq . You do not want to replace that template but create a copy for use. If you are going to go this approach be careful and follow the example in the Proc Template documentation. Look for "&lt;FONT size="4"&gt;Example 1: Editing a Table Template That a SAS Procedure Uses" as there is a LOT of Proc Template to wade through.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps show the CODE of the Proc Compare you are using. It sounds like your code is using the ERROR option. Perhaps you could change that to WARNING instead. Without knowing exactly what you are concerned with in your compare I can't make much more of a suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 15:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/836982#M330949</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-05T15:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ - Difference between SAS 9. and SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/837032#M330972</link>
      <description>&lt;P&gt;ODS applies formatting as well as data output and has evolved considerably since SAS 9.2. If all you require is the data then&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;'s suggestion is the better option. For now your workaround looks like the easiest solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 19:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/837032#M330972</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-05T19:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ - Difference between SAS 9. and SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/843067#M333343</link>
      <description>&lt;P&gt;Thanks for all answers!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-Difference-between-SAS-9-and-SAS-9-4/m-p/843067#M333343</guid>
      <dc:creator>BenoîtOry</dc:creator>
      <dc:date>2022-11-08T09:06:23Z</dc:date>
    </item>
  </channel>
</rss>

