<?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: Need &amp;quot;List Data&amp;quot; output when Obs=0 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-quot-List-Data-quot-output-when-Obs-0/m-p/124219#M10206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose the emailed file is baddata.sas7bdat.&amp;nbsp; Could you append it to a dataset that had only the current date as a record, and then send the concatenated set?&amp;nbsp; That way there would always be something in the concatenated set, the email would be sent, plus the first record would always be the date of creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 16:29:43 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2013-04-29T16:29:43Z</dc:date>
    <item>
      <title>Need "List Data" output when Obs=0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-quot-List-Data-quot-output-when-Obs-0/m-p/124218#M10205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing some ETL and am writing monthly reports on inconsistent data in some data files I receive.&amp;nbsp; The reports are being send out as e-mail as a step in the project.&amp;nbsp; If the data are perfect, there is nothing to list.&amp;nbsp; Currently the list task does not generate any output (using ODS to RTF file).&amp;nbsp; That BREAKS the link to the e-mail.&amp;nbsp; Which would be OK, until the next month when there might be bad data again.&amp;nbsp; I am using EG 5.1 and SAS 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some option for the task or project that would force it to print?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I could use %sysnobs to write some macro code to force printing, but I has hoping for something less klugy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 16:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-quot-List-Data-quot-output-when-Obs-0/m-p/124218#M10205</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-04-29T16:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need "List Data" output when Obs=0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-quot-List-Data-quot-output-when-Obs-0/m-p/124219#M10206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose the emailed file is baddata.sas7bdat.&amp;nbsp; Could you append it to a dataset that had only the current date as a record, and then send the concatenated set?&amp;nbsp; That way there would always be something in the concatenated set, the email would be sent, plus the first record would always be the date of creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 16:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-quot-List-Data-quot-output-when-Obs-0/m-p/124219#M10206</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-29T16:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need "List Data" output when Obs=0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-quot-List-Data-quot-output-when-Obs-0/m-p/124220#M10207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using PUT statements to generate the contents of the email, the same DATA step could easily perform the needed tasks ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the number of observations in the exceptions data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use an IF/THEN statement to write an appropriate message when there are 0 observations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 16:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-quot-List-Data-quot-output-when-Obs-0/m-p/124220#M10207</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-04-29T16:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need "List Data" output when Obs=0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-quot-List-Data-quot-output-when-Obs-0/m-p/124221#M10208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can count the records in the data set using a SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CREATE TABLE WANT AS&lt;/P&gt;&lt;P&gt;SELECT COUNT(*) AS COUNTER&lt;/P&gt;&lt;P&gt;FROM source.table;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will set variable &amp;amp;SQLOBS to the number of rows the SQL processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You then query this value in a DATA step and perform action - if zero to something, else print report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 17:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-quot-List-Data-quot-output-when-Obs-0/m-p/124221#M10208</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2013-04-29T17:46:50Z</dc:date>
    </item>
  </channel>
</rss>

