<?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 was not created in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/664925#M198712</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a code in macro that generates regression coefficients and saved in data set ''estimates&amp;amp;specification".&amp;nbsp; I need to turn off graphics as otherwise the code takes ages to run.&amp;nbsp; My problem is that, when I run in %DO loop, the code returns errors with the warning message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Output 'ParameterEstimates' 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;BR /&gt;WARNING: The current ODS SELECT/EXCLUDE/OUTPUT statement was cleared because the end of a procedure step was detected. Probable causes for this include the non-termination of an interactive procedure (type quit; to end the procedure) and a run group with no output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is puzzling as the code works if I take it out of DO loop in macro.&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;ods listing exclude all;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;ods output ParameterEstimates=estimates&amp;amp;specification (keep= Date Variable DF Estimate Probt);&lt;BR /&gt;proc reg data=temp;&lt;BR /&gt;by Date;&lt;BR /&gt;model Return1Month = &amp;amp;RHS;&lt;BR /&gt;quit;&lt;BR /&gt;ods listing exclude none;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2020 09:18:19 GMT</pubDate>
    <dc:creator>ynchoir11111</dc:creator>
    <dc:date>2020-06-25T09:18:19Z</dc:date>
    <item>
      <title>ODS Output was not created</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/664925#M198712</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a code in macro that generates regression coefficients and saved in data set ''estimates&amp;amp;specification".&amp;nbsp; I need to turn off graphics as otherwise the code takes ages to run.&amp;nbsp; My problem is that, when I run in %DO loop, the code returns errors with the warning message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Output 'ParameterEstimates' 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;BR /&gt;WARNING: The current ODS SELECT/EXCLUDE/OUTPUT statement was cleared because the end of a procedure step was detected. Probable causes for this include the non-termination of an interactive procedure (type quit; to end the procedure) and a run group with no output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is puzzling as the code works if I take it out of DO loop in macro.&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;ods listing exclude all;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;ods output ParameterEstimates=estimates&amp;amp;specification (keep= Date Variable DF Estimate Probt);&lt;BR /&gt;proc reg data=temp;&lt;BR /&gt;by Date;&lt;BR /&gt;model Return1Month = &amp;amp;RHS;&lt;BR /&gt;quit;&lt;BR /&gt;ods listing exclude none;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 09:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/664925#M198712</guid>
      <dc:creator>ynchoir11111</dc:creator>
      <dc:date>2020-06-25T09:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output was not created</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/664941#M198722</link>
      <description>&lt;P&gt;Are these the&amp;nbsp;&lt;EM&gt;only&lt;/EM&gt; WARNINGs (or ERRORs) that you get, or do you get any "abnormal" message from the REG procedure itself?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you set macro variable &amp;amp;RHS?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 10:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/664941#M198722</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-25T10:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output was not created</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/664980#M198742</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;Thanks much for your reply.&amp;nbsp; &amp;amp;RHS is set at the beginning of %DO loop.&lt;/P&gt;&lt;P&gt;Yes, these are the only warning I got.&amp;nbsp; Of course, the rest of the codes also screw up because they do not find ''estiamtes&amp;amp;specification".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%DO specification = 1 %TO 5;&lt;/P&gt;&lt;P&gt;%if &amp;amp;dataset = quintiles %then %do;&lt;/P&gt;&lt;P&gt;%if &amp;amp;specification = 1 %then %let RHS= BondBookToMarketQ2-BondBookToMarketQ5;&lt;BR /&gt;%else %if &amp;amp;specification = 2 %then %let RHS= BondBookToMarketQ2-BondBookToMarketQ5&lt;BR /&gt;BondValueQ2-BondValueQ5 BondAgeQ2-BondAgeQ5 BondMaturityQ2-BondMaturityQ5&lt;BR /&gt;BondBidAskSpreadQ2-BondBidAskSpreadQ5&lt;BR /&gt;BondReversalQ2-BondReversalQ5 BondMomentum26Q2-BondMomentum26Q5;&lt;BR /&gt;%else %if &amp;amp;specification = 3 %then %let RHS= BondYieldQ2-BondYieldQ5;&lt;BR /&gt;%else %if &amp;amp;specification = 4 %then %let RHS= BondYieldQ2-BondYieldQ5&lt;BR /&gt;BondValueQ2-BondValueQ5 BondAgeQ2-BondAgeQ5 BondMaturityQ2-BondMaturityQ5&lt;BR /&gt;BondBidAskSpreadQ2-BondBidAskSpreadQ5&lt;BR /&gt;BondReversalQ2-BondReversalQ5 BondMomentum26Q2-BondMomentum26Q5;&lt;BR /&gt;%else %if &amp;amp;specification = 5 %then %let RHS= BondBookToMarketQ2-BondBookToMarketQ5 BondYieldQ2-BondYieldQ5&lt;BR /&gt;BondValueQ2-BondValueQ5 BondAgeQ2-BondAgeQ5 BondMaturityQ2-BondMaturityQ5&lt;BR /&gt;BondBidAskSpreadQ2-BondBidAskSpreadQ5&lt;BR /&gt;BondReversalQ2-BondReversalQ5 BondMomentum26Q2-BondMomentum26Q5;&lt;BR /&gt;%end;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 12:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/664980#M198742</guid>
      <dc:creator>ynchoir11111</dc:creator>
      <dc:date>2020-06-25T12:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output was not created</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/664986#M198748</link>
      <description>&lt;P&gt;Insert %PUT statements right before the PROC REG that display the values of all macro variables used in the proc step. Then, inspect the log at which of your iterations the problem arises, and then run the step manually with the exact same parameters (without any use of macro variables).&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 12:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/664986#M198748</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-25T12:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output was not created</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/665003#M198758</link>
      <description>&lt;P&gt;Do loop runs from specification 1 to 5, and all iterations from 2 to 5 show the same warning message.&lt;/P&gt;&lt;P&gt;When I copied the code inside the Do loop, set "%let specification=2;", and then it runs without any problems...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 13:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/665003#M198758</guid>
      <dc:creator>ynchoir11111</dc:creator>
      <dc:date>2020-06-25T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output was not created</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/665009#M198762</link>
      <description>&lt;P&gt;How do you call your macro?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 13:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-was-not-created/m-p/665009#M198762</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-25T13:39:10Z</dc:date>
    </item>
  </channel>
</rss>

