<?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: Email a report only if the output has data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51550#M14144</link>
    <description>&amp;gt; data _null_;&lt;BR /&gt;
&amp;gt;    if _n_ eq 0 and eof then stop;&lt;BR /&gt;
&amp;gt; file mail;&lt;BR /&gt;
&amp;gt;    put "This is a test."; &lt;BR /&gt;
&amp;gt; stop;&lt;BR /&gt;
&amp;gt;    set Work.bad_grad_date(drop=_all_) end=eof;&lt;BR /&gt;
&amp;gt; run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
You have &lt;BR /&gt;
[pre]if _n_ eq 0 and eof then stop;[/pre]&lt;BR /&gt;
&lt;BR /&gt;
change 0 to 1.</description>
    <pubDate>Fri, 20 Aug 2010 21:55:25 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2010-08-20T21:55:25Z</dc:date>
    <item>
      <title>Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51542#M14136</link>
      <description>I run some weekly data integrity checks that I'm moving to SAS.  I want to put the output in a spreadsheet and email it to the contact.  Is there a way that if the report returns 0 records, no spreadsheet and no email is generated?&lt;BR /&gt;
&lt;BR /&gt;
I was thinking about first.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Fri, 16 Jul 2010 17:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51542#M14136</guid>
      <dc:creator>nickb</dc:creator>
      <dc:date>2010-07-16T17:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51543#M14137</link>
      <description>Check the archives - one technique, you can to use the NOBS= keyword on the SET statement in a DATA step, and then use CALL EXECUTE to conditionally execute subsequent SAS code to generate the EMAIL, either with or without an attachment, considering possibly an EMAIL body text approach that states "no report today."&lt;BR /&gt;
&lt;BR /&gt;
There are several approaches, some with using the SAS macro facility, and that avoid the facility - depending on the programmer's skill level and interest (or otherwise) with using macros and macro variables.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
set nobs condition sas code site:sas.com</description>
      <pubDate>Fri, 16 Jul 2010 17:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51543#M14137</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-16T17:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51544#M14138</link>
      <description>the following macro checks the number of obs in a data set.  you may want to check that the data set exists first (EXIST function).&lt;BR /&gt;
[pre]&lt;BR /&gt;
%macro obscnt(dsn);&lt;BR /&gt;
%local nobs;&lt;BR /&gt;
%let nobs=.;&lt;BR /&gt;
&lt;BR /&gt;
%* Open the data set of interest;&lt;BR /&gt;
%let dsnid = %sysfunc(open(&amp;amp;dsn));&lt;BR /&gt;
&lt;BR /&gt;
%* If the open was successful get the;&lt;BR /&gt;
%* number of observations and CLOSE &amp;amp;dsn;&lt;BR /&gt;
%if &amp;amp;dsnid %then %do;&lt;BR /&gt;
     %let nobs=%sysfunc(attrn(&amp;amp;dsnid,nlobs));&lt;BR /&gt;
     %let rc  =%sysfunc(close(&amp;amp;dsnid));&lt;BR /&gt;
%end;&lt;BR /&gt;
%else %do;&lt;BR /&gt;
     %put Unable to open &amp;amp;dsn - %sysfunc(sysmsg());&lt;BR /&gt;
%end;&lt;BR /&gt;
&lt;BR /&gt;
%* Return the number of observations;&lt;BR /&gt;
&amp;amp;nobs&lt;BR /&gt;
%mend obscnt;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 16 Jul 2010 18:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51544#M14138</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-07-16T18:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51545#M14139</link>
      <description>This appears to be working correctly but I need to figure out how NOT to send an email if nobs = 0.  Right now the email is sent either way but if the condition is true, the body says "This is a test."&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
     if %obscnt (work.Duplicate_Registration)&amp;gt;0 then&lt;BR /&gt;
     do;&lt;BR /&gt;
        file mail;&lt;BR /&gt;
        put "This is a test.";  &lt;BR /&gt;
     end;&lt;BR /&gt;
run;

Message was edited by: nickb</description>
      <pubDate>Thu, 19 Aug 2010 18:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51545#M14139</guid>
      <dc:creator>nickb</dc:creator>
      <dc:date>2010-08-19T18:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51546#M14140</link>
      <description>I would make one small change to your code by checking for the empty dataset first.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
if %obscnt (work.Duplicate_Registration) = 0 the stop;&lt;BR /&gt;
else if %obscnt (work.Duplicate_Registration) &amp;gt; 0 then do;&lt;BR /&gt;
file mail;&lt;BR /&gt;
put "This is a test."; &lt;BR /&gt;
end;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 19 Aug 2010 19:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51546#M14140</guid>
      <dc:creator>garybald</dc:creator>
      <dc:date>2010-08-19T19:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51547#M14141</link>
      <description>The number of observations is irrelevant; everything you need can be easily obtained with a SET statement.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data class;&lt;BR /&gt;
   set sashelp.class;&lt;BR /&gt;
   run;&lt;BR /&gt;
data class;&lt;BR /&gt;
   modify class;&lt;BR /&gt;
   remove;&lt;BR /&gt;
   run;* cancel;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   if _n_ eq 1 and eof then stop;&lt;BR /&gt;
   *file mail;&lt;BR /&gt;
   put "This is a test."; &lt;BR /&gt;
   stop;&lt;BR /&gt;
   set class(drop=_all_) end=eof;&lt;BR /&gt;
   run; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 19 Aug 2010 21:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51547#M14141</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-08-19T21:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51548#M14142</link>
      <description>I've tried both approaches and if there are 0 records in the dataset the email is still being sent.&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME DWView META  Library=DWView   repname=Foundation      host=coues      user="&amp;amp;SPUsername" pw="&amp;amp;SPPassword";&lt;BR /&gt;
&lt;BR /&gt;
FILENAME mail EMAIL&lt;BR /&gt;
SUBJECT="Results as of %sysfunc(date(),yymmdd10.)"&lt;BR /&gt;
TO= "myemail"&lt;BR /&gt;
FROM= "myemail"&lt;BR /&gt;
ATTACH="D:\Temp\nick_tmp\bad_grad_date.xls";&lt;BR /&gt;
proc sql NOPRINT;&lt;BR /&gt;
Create Table Work.bad_grad_date&lt;BR /&gt;
	as&lt;BR /&gt;
select	 a.PERSON_ID_NB&lt;BR /&gt;
		,p.last_nm as HIGH_SCHOOL_NM&lt;BR /&gt;
		,i.CEEB_Cd as HIGH_SCHOOL_CD&lt;BR /&gt;
		,a.end_yr as Graduation_Dt&lt;BR /&gt;
from (&lt;BR /&gt;
		SELECT piya.person_id, PERSON_ID_NB, piya.end_yr, max(institution_id) as institution_Id&lt;BR /&gt;
		FROM DWView.Person_Institution_Year_Attend_C PIYA&lt;BR /&gt;
		INNER JOIN (&lt;BR /&gt;
					select PIYA.person_Id, max(end_yr) AS GRAD_YR&lt;BR /&gt;
					from	DWView.Person_Institution_Year_Attend_C PIYA&lt;BR /&gt;
					INNER JOIN DWVIEW.Institution_C I&lt;BR /&gt;
					on piYa.institution_id = i.institution_id&lt;BR /&gt;
					where i.education_type_cd in ('11','97','98')&lt;BR /&gt;
						and PIYA.END_YR NOT BETWEEN 1900 AND 2025&lt;BR /&gt;
						GROUP BY PIYA.PERSON_ID&lt;BR /&gt;
						) B&lt;BR /&gt;
ON PIYA.Person_Id = B.Person_Id&lt;BR /&gt;
	AND B.Grad_Yr = PIYA.End_Yr&lt;BR /&gt;
group by piya.person_id, piya.end_yr, PERSON_ID_NB&lt;BR /&gt;
			) a&lt;BR /&gt;
inner join dwview.person_c p  /* create join to get institution name */&lt;BR /&gt;
	on a.institution_Id  = p.person_id&lt;BR /&gt;
inner join dwview.institution_c i /* create join to get CEEB code */&lt;BR /&gt;
	on a.institution_id = i.institution_id&lt;BR /&gt;
ORDER BY A.person_id_nb&lt;BR /&gt;
;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
PROC EXPORT&lt;BR /&gt;
Data = Work.bad_grad_date&lt;BR /&gt;
OUTFILE= "D:\Temp\nick_tmp\bad_grad_date.xls"&lt;BR /&gt;
DBMS=XLS REPLACE;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   if _n_ eq 0 and eof then stop;&lt;BR /&gt;
   file mail;&lt;BR /&gt;
   put "This is a test."; &lt;BR /&gt;
   stop;&lt;BR /&gt;
   set Work.bad_grad_date(drop=_all_) end=eof;&lt;BR /&gt;
   run;</description>
      <pubDate>Fri, 20 Aug 2010 19:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51548#M14142</guid>
      <dc:creator>nickb</dc:creator>
      <dc:date>2010-08-20T19:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51549#M14143</link>
      <description>The entire FILENAME &lt;FILEREF&gt; EMAIL  code piece cannot be executed to avoid having the EMAIL generated - you will need to consider using a SAS macro.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/FILEREF&gt;</description>
      <pubDate>Fri, 20 Aug 2010 19:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51549#M14143</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-20T19:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51550#M14144</link>
      <description>&amp;gt; data _null_;&lt;BR /&gt;
&amp;gt;    if _n_ eq 0 and eof then stop;&lt;BR /&gt;
&amp;gt; file mail;&lt;BR /&gt;
&amp;gt;    put "This is a test."; &lt;BR /&gt;
&amp;gt; stop;&lt;BR /&gt;
&amp;gt;    set Work.bad_grad_date(drop=_all_) end=eof;&lt;BR /&gt;
&amp;gt; run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
You have &lt;BR /&gt;
[pre]if _n_ eq 0 and eof then stop;[/pre]&lt;BR /&gt;
&lt;BR /&gt;
change 0 to 1.</description>
      <pubDate>Fri, 20 Aug 2010 21:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51550#M14144</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-08-20T21:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51551#M14145</link>
      <description>an alternative ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  if 0 then set SerShip point=_n_ nobs=count;&lt;BR /&gt;
  call symput('COUNT',left(put(count,8.)));&lt;BR /&gt;
  stop;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%macro mail;                                                                                                                            &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
%if &amp;amp;count &amp;gt; 0 %then %do;                                                                                                               &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
filename mail email ' '                                                                                                                 &lt;BR /&gt;
 from="me@myplace.ca"                                                                                                                   &lt;BR /&gt;
 to="you@yourplace.us"                                                                                                                  &lt;BR /&gt;
 subject=                                                                                                                               &lt;BR /&gt;
 "Test Report";                                                                                                                         &lt;BR /&gt;
;                                                                                                                                       &lt;BR /&gt;
data _null_;                                                                                                                            &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
file mail;                                                                                                                              &lt;BR /&gt;
  put "another SAS report for you";                                                                                                     &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
%end;                                                                                                                                   &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
%mend mail;                                                                                                                             &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
%mail;</description>
      <pubDate>Mon, 23 Aug 2010 13:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51551#M14145</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2010-08-23T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51552#M14146</link>
      <description>I'm looking for number of obs=0.  I changed the value to 1 and it still emailing a spreadsheet that only contains headers.  When I have the value set to 1, it emails the spreadsheet and the email body doesn't contain "This is a test" (that's what I would expect).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Table WORK.BAD_GRAD_DATE created, with 0 rows and 4 columns.</description>
      <pubDate>Mon, 23 Aug 2010 18:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51552#M14146</guid>
      <dc:creator>nickb</dc:creator>
      <dc:date>2010-08-23T18:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51553#M14147</link>
      <description>Suggest you share your SAS-generated log with all relative code revealed - it's guess-work otherwise for forum subscribers.&lt;BR /&gt;
&lt;BR /&gt;
Also, I strongly suggest you start with a very, very simple program, one that uses SASHELP.CLASS -- get that working and then broaden the approach to use your application data, but only after you have a clear grasp on what your code is doing and why.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 23 Aug 2010 20:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51553#M14147</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-23T20:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51554#M14148</link>
      <description>And...in addition to Scott's (and others') most useful suggestions, I have a question that may take you in a slightly different direction.&lt;BR /&gt;
&lt;BR /&gt;
I notice in your LIBNAME statement that you are using the Metadata Libname Engine and a REPNAME= option. Are you by any chance doing this emailing via a DI Studio job or a SAS Stored Process or via a batch job on one of the SAS platform servers (Workspace Server or Stored Process server)???? &lt;BR /&gt;
 &lt;BR /&gt;
If you are creating output to be emailed via a job or a stored process, you might wish to refer to these Tech Support notes or documentation&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/39/220.html" target="_blank"&gt;http://support.sas.com/kb/39/220.html&lt;/A&gt; &lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/17/867.html" target="_blank"&gt;http://support.sas.com/kb/17/867.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/stpsamp.html" target="_blank"&gt;http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/stpsamp.html&lt;/A&gt; (which shows %let _RESULT=PACKAGE_TO_EMAIL;)&lt;BR /&gt;
        &lt;BR /&gt;
or this paper&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings09/330-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/330-2009.pdf&lt;/A&gt; (which also shows emailing using PACKAGE_TO_EMAIL techniques)&lt;BR /&gt;
    &lt;BR /&gt;
or, otherwise, work with Tech Support on this question. You may find that emailing a file such as your Excel file requires that you create a SAS Package (like a zip file) and then email the SAS package to your email recipients. Tech Support can help you figure this out. Looking at the stored process examples should help you get an idea of how your code might need to be a bit different on the BI Platform.&lt;BR /&gt;
              &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 23 Aug 2010 21:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51554#M14148</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-23T21:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51555#M14149</link>
      <description>Yes I undstand now.  You get e-mail with no matter if there are zero obs or not, just as you said but I didn't listen.  &lt;BR /&gt;
&lt;BR /&gt;
I did some testing with "FILE EMAIL" as I should have done to begin with.  It seems that you can get it to work using FILEVAR option on FILE statement.  Sorry to be so dense.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data class;&lt;BR /&gt;
   set sashelp.class;&lt;BR /&gt;
   run;&lt;BR /&gt;
data class;&lt;BR /&gt;
   modify class;&lt;BR /&gt;
   remove;&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   if _n_ eq 1 and eof then stop;&lt;BR /&gt;
   to = 'datanull@gmail.com'; &lt;BR /&gt;
   file dummy email filevar=to &lt;BR /&gt;
      subject="Results as of %sysfunc(date(),yymmdd10.)" &lt;BR /&gt;
      from='datanull@gmail.com' &lt;BR /&gt;
      attach='email02.sas'&lt;BR /&gt;
      ;&lt;BR /&gt;
   stop;&lt;BR /&gt;
   set class(drop=_all_) end=eof;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 23 Aug 2010 21:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51555#M14149</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-08-23T21:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51556#M14150</link>
      <description>Works like a charm.  Thanks again for all the help..</description>
      <pubDate>Tue, 24 Aug 2010 13:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51556#M14150</guid>
      <dc:creator>nickb</dc:creator>
      <dc:date>2010-08-24T13:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Email a report only if the output has data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51557#M14151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Works great and a great help - now I have to implement across hundreds of emails per day...thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 13:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-a-report-only-if-the-output-has-data/m-p/51557#M14151</guid>
      <dc:creator>CryoKen</dc:creator>
      <dc:date>2011-07-29T13:29:46Z</dc:date>
    </item>
  </channel>
</rss>

