<?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 | OUT= in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-OUT/m-p/805366#M317247</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=sashelp.class;
	TABLES sex*age / OUTPCT out=OUTPCT;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You mean like that?&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 17:13:16 GMT</pubDate>
    <dc:creator>AMSAS</dc:creator>
    <dc:date>2022-03-31T17:13:16Z</dc:date>
    <item>
      <title>PROC FREQ | OUT=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-OUT/m-p/805363#M317245</link>
      <description>&lt;P&gt;I'm trying to output summary statistics from PROC FREQ so that I can use PROC SGPLOT to plot column percentage on an X-axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to following &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_freq_details112.htm" target="_self"&gt;the SAS documentation&lt;/A&gt;:&amp;nbsp;"If you specify the OUTPCT option for a two-way or multiway table, the output data set also includes row, column, and table percentages."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=subset;
	TABLES make*origin / OUT=OUTPCT;
RUN; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above syntax only produces a data set w/ Count and Total Percent.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the proper format for the OUT= option?&lt;BR /&gt;How do I incorporate&amp;nbsp;OUTEXPECT or&amp;nbsp;OUTPCT or&amp;nbsp;PCT_COL into the syntax?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 17:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-OUT/m-p/805363#M317245</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2022-03-31T17:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ | OUT=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-OUT/m-p/805365#M317246</link>
      <description>&lt;P&gt;You did not include the OUTPCT option on the TABLES statement.&amp;nbsp; You used OUTPCT as the NAME of the dataset that the OUT= option is creating.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=sashelp.cars;
	TABLES make*origin / OUT=want OUTPCT noprint;
RUN; 

proc print data=want(obs=4);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;Obs    Make     Origin    COUNT    PERCENT    PCT_ROW    PCT_COL

  1    Acura    Asia         7     1.63551      100       4.4304
  2    Audi     Europe      19     4.43925      100      15.4472
  3    BMW      Europe      20     4.67290      100      16.2602
  4    Buick    USA          9     2.10280      100       6.1224


&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Mar 2022 17:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-OUT/m-p/805365#M317246</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-31T17:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ | OUT=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-OUT/m-p/805366#M317247</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=sashelp.class;
	TABLES sex*age / OUTPCT out=OUTPCT;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You mean like that?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 17:13:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-OUT/m-p/805366#M317247</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2022-03-31T17:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ | OUT=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-OUT/m-p/805367#M317248</link>
      <description>&lt;P&gt;OUT= names the data set created with the name following the =. OUTPCT as an option would look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;PROC FREQ DATA=subset;
	TABLES make*origin / OUT= mydatasetname OUTPCT;
RUN; &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36911"&gt;@_maldini_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to output summary statistics from PROC FREQ so that I can use PROC SGPLOT to plot column percentage on an X-axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to following &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_freq_details112.htm" target="_self"&gt;the SAS documentation&lt;/A&gt;:&amp;nbsp;"If you specify the OUTPCT option for a two-way or multiway table, the output data set also includes row, column, and table percentages."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ DATA=subset;
	TABLES make*origin / OUT=OUTPCT;
RUN; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above syntax only produces a data set w/ Count and Total Percent.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the proper format for the OUT= option?&lt;BR /&gt;How do I incorporate&amp;nbsp;OUTEXPECT or&amp;nbsp;OUTPCT or&amp;nbsp;PCT_COL into the syntax?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 17:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-OUT/m-p/805367#M317248</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-31T17:13:38Z</dc:date>
    </item>
  </channel>
</rss>

