<?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: ODS output not being created for proc freq in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595853#M23383</link>
    <description>&lt;P&gt;Thank you for quick response.&lt;/P&gt;&lt;P&gt;Do you know why the output table is not being created?&lt;/P&gt;&lt;P&gt;In the code that I'm working on, I have a 'by' statement and a 'tables' statement under proc freq so I need to use crosstabsfreq.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 19:35:06 GMT</pubDate>
    <dc:creator>thewan</dc:creator>
    <dc:date>2019-10-11T19:35:06Z</dc:date>
    <item>
      <title>ODS output not being created for proc freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595848#M23381</link>
      <description>&lt;P&gt;Does anyone know why my ods output file is not being created?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is for a larger macro that I am working on, but I am using a SAS example dataset here. The file can be run as is by changing the destination path under filename.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dm 'log;clear;output;clear; ';
dm 'odsresults; clear';;
PROC DATASETS LIB=work NOlist MEMTYPE=data kill; /*deletes datasets in working directory*/
options nosymbolgen nomprint nomlogic; /*system options set to default*/
proc printto; run; /*ods listing will be redirected inside macro; set this to default again*/

options nonotes symbolgen mprint mlogic;
options missing = "";
filename myfile 'C:\Users\user\Desktop\RA\Mydoc.log'; /*Specify destination for output file*/
proc printto log=myfile new; run;

ods output CrossTabFreqs = Freq_ests;
proc freq data=sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 19:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595848#M23381</guid>
      <dc:creator>thewan</dc:creator>
      <dc:date>2019-10-11T19:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output not being created for proc freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595851#M23382</link>
      <description>&lt;P&gt;Looks like your PROC FREQ statement doesn't produce the ODS table (crosstabfreqs) that you're requesting.&lt;/P&gt;
&lt;P&gt;Your log probably says something like,&lt;/P&gt;
&lt;P&gt;"WARNING: Output 'crosstabfreqs' was not created...."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you specify only a PROC FREQ statement (without a TABLES statement),&amp;nbsp;&lt;SPAN&gt;PROC FREQ produces a one-way frequency table for each variable in the most recently created data set. The doc is&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_freq_toc.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;. The ODS name of the one-way frequency table is OneWayFreqs (doc&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_freq_details124.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;).&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 19:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595851#M23382</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2019-10-11T19:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output not being created for proc freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595853#M23383</link>
      <description>&lt;P&gt;Thank you for quick response.&lt;/P&gt;&lt;P&gt;Do you know why the output table is not being created?&lt;/P&gt;&lt;P&gt;In the code that I'm working on, I have a 'by' statement and a 'tables' statement under proc freq so I need to use crosstabsfreq.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 19:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595853#M23383</guid>
      <dc:creator>thewan</dc:creator>
      <dc:date>2019-10-11T19:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output not being created for proc freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595860#M23384</link>
      <description>CROSSTABSFREQ is the name of the output when you have an interaction term. When you have single variables the name of the output table is ONEWAYFREQS. Use the correct name and you'll get the desired output.</description>
      <pubDate>Fri, 11 Oct 2019 19:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595860#M23384</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-11T19:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output not being created for proc freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595864#M23385</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I think that the crosstabfreqs output object only gets created if you use a TABLES statement for PROC FREQ that generates crosstabs. With no TABLES statement, then PROC FREQ is giving you one way frequencies on every variable in the file -- this is not the crosstabfreqs object, this is the onewayfreq object. Since you do not have TABLES statement that is generating, nothing is getting created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would at least expect to see this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;tables var1*var2;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;if you want crosstabfreqs output object to be created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 19:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595864#M23385</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-10-11T19:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output not being created for proc freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595929#M23386</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173317"&gt;@thewan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for quick response.&lt;/P&gt;
&lt;P&gt;Do you know why the output table is not being created?&lt;/P&gt;
&lt;P&gt;In the code that I'm working on, I have a 'by' statement and a 'tables' statement under proc freq so I need to use crosstabsfreq.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you want to do a bunch of crosstabs without listing all the combinations you can use syntax like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc freq data=have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; tables (var1 var2 … varn) * (othervar somethingelse andanother);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to run a crosstab on ALL pairs of variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc freq data=have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables _all_*_all_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wouldn't recommend that though as any variables with large numbers of unque values such as unique identifiers, prices, measurements like height, weight, temperature or large numbers of variables can create a lot of data.&lt;/P&gt;
&lt;P&gt;For a reasonable example of what I mean run that example with _all_ * _all_ on the SASHELP.CLASS data set you should have access to.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 23:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595929#M23386</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-11T23:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output not being created for proc freq</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595931#M23387</link>
      <description>&lt;P&gt;Thank you for the input!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to figure out where I went wrong with my code.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2019 00:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-not-being-created-for-proc-freq/m-p/595931#M23387</guid>
      <dc:creator>thewan</dc:creator>
      <dc:date>2019-10-12T00:00:16Z</dc:date>
    </item>
  </channel>
</rss>

