<?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 How to suppress empty output from proc sql in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-suppress-empty-output-from-proc-sql/m-p/471488#M21095</link>
    <description>&lt;P&gt;The following code gives an empty result page:&lt;/P&gt;
&lt;PRE&gt;ods listing close;                                              
ods html;                                                        
title 'report 1';
proc sql; select * from sashelp.class where age=99; run; quit;  
ods html close;                                                  
ods listing;       
&lt;/PRE&gt;
&lt;P&gt;How can I suppress the empty page when proc sql does not return a result?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jun 2018 19:12:47 GMT</pubDate>
    <dc:creator>JMS</dc:creator>
    <dc:date>2018-06-19T19:12:47Z</dc:date>
    <item>
      <title>How to suppress empty output from proc sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-suppress-empty-output-from-proc-sql/m-p/471488#M21095</link>
      <description>&lt;P&gt;The following code gives an empty result page:&lt;/P&gt;
&lt;PRE&gt;ods listing close;                                              
ods html;                                                        
title 'report 1';
proc sql; select * from sashelp.class where age=99; run; quit;  
ods html close;                                                  
ods listing;       
&lt;/PRE&gt;
&lt;P&gt;How can I suppress the empty page when proc sql does not return a result?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 19:12:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-suppress-empty-output-from-proc-sql/m-p/471488#M21095</guid>
      <dc:creator>JMS</dc:creator>
      <dc:date>2018-06-19T19:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to suppress empty output from proc sql</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-suppress-empty-output-from-proc-sql/m-p/471507#M21096</link>
      <description>&lt;P&gt;You'll need macro logic. The easiest is to pipe it to a table and then check if the table is empty. If so, don't do anything and if it has records you can then print it using PROC PRINT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of conditional logic is here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p011imau3tm4jen1us2a45cyenz9.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p011imau3tm4jen1us2a45cyenz9.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 20:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-suppress-empty-output-from-proc-sql/m-p/471507#M21096</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-19T20:02:56Z</dc:date>
    </item>
  </channel>
</rss>

