<?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: Report with no dataset in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Report-with-no-dataset/m-p/92764#M8546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without seeing how you are currently doing it is hard to make an informed suggestion.&lt;/P&gt;&lt;P&gt;In the old days we would just use a DATA _NULL_ step.&amp;nbsp; For example if you were using PROC REPORT to make the report you could preceed with a data _null_ step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods pds file='step1.pdf';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if nobs=0 then do; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file print;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'No data for this report';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; stop;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set report1 nobs=nobs ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc report data=report1 .......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;............&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods pdf close ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Mar 2013 22:47:09 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-03-29T22:47:09Z</dc:date>
    <item>
      <title>Report with no dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Report-with-no-dataset/m-p/92761#M8543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mabye someone can lend some advice here.&amp;nbsp; I am using SAS to run an interval report hourly that auto emails to a dist list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run 4 different summary statistics reports, join them into one report report, export them to pdf and email them to a distribution list hourly throughout the day.&amp;nbsp; It's an automated process that i have running on my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is happening is that one of the reports sometimes has an empty dataset, and therefore when the automated process runs, it doesn't generate anything for that statistics summary table and the report ends up with the prior hours information, which is confusing my audience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to force the summary statistics to run even though the dataset is empty, instead of having information from a prior interval?&amp;nbsp; Any suggestions would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 18:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Report-with-no-dataset/m-p/92761#M8543</guid>
      <dc:creator>D_Z_</dc:creator>
      <dc:date>2013-03-29T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Report with no dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Report-with-no-dataset/m-p/92762#M8544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me see if I understand the problem.&lt;/P&gt;&lt;P&gt;You are generating the report to a file?&amp;nbsp; And since the input is empty the step doesn't run so the file isn't overwritten?&lt;/P&gt;&lt;P&gt;Depends on how you are generating the reports, but in general you should add a step to write a dummy report before the one that makes the real report.&lt;/P&gt;&lt;P&gt;Then if the step doesn't overwrite it they get the dummy report instead of the report from the previous successful run. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 20:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Report-with-no-dataset/m-p/92762#M8544</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-03-29T20:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Report with no dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Report-with-no-dataset/m-p/92763#M8545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay... that's makes sense.&amp;nbsp; I am not familiar with how to create that kind of step.&amp;nbsp; Is there a resource that you could recommend that would walk me through that process?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 20:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Report-with-no-dataset/m-p/92763#M8545</guid>
      <dc:creator>D_Z_</dc:creator>
      <dc:date>2013-03-29T20:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Report with no dataset</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Report-with-no-dataset/m-p/92764#M8546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without seeing how you are currently doing it is hard to make an informed suggestion.&lt;/P&gt;&lt;P&gt;In the old days we would just use a DATA _NULL_ step.&amp;nbsp; For example if you were using PROC REPORT to make the report you could preceed with a data _null_ step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods pds file='step1.pdf';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if nobs=0 then do; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file print;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'No data for this report';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; stop;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set report1 nobs=nobs ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc report data=report1 .......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;............&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods pdf close ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 22:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Report-with-no-dataset/m-p/92764#M8546</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-03-29T22:47:09Z</dc:date>
    </item>
  </channel>
</rss>

