<?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: CountIf Observations = 0 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/CountIf-Observations-0/m-p/181806#M46313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Automatic macro variable SQLOBS is set to the observation count after every SQL query. Use it's value to send your email conditionnaly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 22:21:47 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-11-21T22:21:47Z</dc:date>
    <item>
      <title>CountIf Observations = 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CountIf-Observations-0/m-p/181805#M46312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a SQL query pulling data from DB2 and then using ODS HTML to email the results table to an email user (myself for right now). Sometimes the result of the query has zero observations. For instances when I do not have any observations I would like to skip the ODS HTML portion of the job to prevent sending a blank email. I have looked and have been unable to find any examples I could use of an observation count stopping the processing of the job. Is there an easy way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 22:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CountIf-Observations-0/m-p/181805#M46312</guid>
      <dc:creator>AndyJ_</dc:creator>
      <dc:date>2014-11-21T22:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: CountIf Observations = 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CountIf-Observations-0/m-p/181806#M46313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Automatic macro variable SQLOBS is set to the observation count after every SQL query. Use it's value to send your email conditionnaly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 22:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CountIf-Observations-0/m-p/181806#M46313</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-11-21T22:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: CountIf Observations = 0</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CountIf-Observations-0/m-p/181807#M46314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's generally macro logic&lt;/P&gt;&lt;P&gt;Here's a couple of questions that are related:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="180718" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="218938" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="158775" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 22:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CountIf-Observations-0/m-p/181807#M46314</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-21T22:36:11Z</dc:date>
    </item>
  </channel>
</rss>

