<?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 ODS output dataset not being created in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-dataset-not-being-created/m-p/703247#M24708</link>
    <description>&lt;PRE&gt;ODS trace on;
proc freq data = data;
tables hypreldeathind*statecd / norow nopercent nocum missing chisq;
run;
ods trace off;

Ods output crosstabfreqs = want (keep = StateCd HypRelDeathInd Frequency ColPercent

 where = (StateCd IN ('IA' 'MS' 'UT') and HypRelDeathInd = 1 and Missing(StateCd = 0)))
 chisq = hyprslt.chisqresults (drop = Table Where = (statistic = 'Chi Square')) ;
 
Proc Print data=data;
run;

Proc contents data = data;
run;

Proc print data=data;
run;&lt;/PRE&gt;&lt;P&gt;I'm receiving errors that the data tables do not exist. It looks like I'm creating them correctly in ODS output though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be related to warning messages received in log --&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; WARNING: Output 'chisq' was not created.  Make sure that the output object name, label, or path is spelled correctly.  Also, verify 
          that the appropriate procedure options are used to produce the requested output object.  For example, verify that the 
          NOPRINT option is not used.
 WARNING: Output 'crosstabfreqs' was not created.  Make sure that the output object name, label, or path is spelled correctly.  
          Also, verify that the appropriate procedure options are used to produce the requested output object.  For example, verify 
          that the NOPRINT option is not used.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 15:10:48 GMT</pubDate>
    <dc:creator>rdevoss</dc:creator>
    <dc:date>2020-12-10T15:10:48Z</dc:date>
    <item>
      <title>ODS output dataset not being created</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-dataset-not-being-created/m-p/703247#M24708</link>
      <description>&lt;PRE&gt;ODS trace on;
proc freq data = data;
tables hypreldeathind*statecd / norow nopercent nocum missing chisq;
run;
ods trace off;

Ods output crosstabfreqs = want (keep = StateCd HypRelDeathInd Frequency ColPercent

 where = (StateCd IN ('IA' 'MS' 'UT') and HypRelDeathInd = 1 and Missing(StateCd = 0)))
 chisq = hyprslt.chisqresults (drop = Table Where = (statistic = 'Chi Square')) ;
 
Proc Print data=data;
run;

Proc contents data = data;
run;

Proc print data=data;
run;&lt;/PRE&gt;&lt;P&gt;I'm receiving errors that the data tables do not exist. It looks like I'm creating them correctly in ODS output though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be related to warning messages received in log --&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; WARNING: Output 'chisq' was not created.  Make sure that the output object name, label, or path is spelled correctly.  Also, verify 
          that the appropriate procedure options are used to produce the requested output object.  For example, verify that the 
          NOPRINT option is not used.
 WARNING: Output 'crosstabfreqs' was not created.  Make sure that the output object name, label, or path is spelled correctly.  
          Also, verify that the appropriate procedure options are used to produce the requested output object.  For example, verify 
          that the NOPRINT option is not used.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-dataset-not-being-created/m-p/703247#M24708</guid>
      <dc:creator>rdevoss</dc:creator>
      <dc:date>2020-12-10T15:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output dataset not being created</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-dataset-not-being-created/m-p/703250#M24709</link>
      <description>&lt;P&gt;ODS OUTPUT statement needs to come either immediately before the Proc Freq code or in the body of Proc Freq before a Run; statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have it after Proc Freq then the proc did not know you were requesting the output and none was created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your teacher must be pretty mediocre as we have seen many of you with the exact same question and code out of place.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 01:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-dataset-not-being-created/m-p/703250#M24709</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-03T01:58:54Z</dc:date>
    </item>
  </channel>
</rss>

