<?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: Ending Procedure in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70153#M8050</link>
    <description>Add the following statement to your SAS program:&lt;BR /&gt;
&lt;BR /&gt;
FILENAME MAIL CLEAR;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Tue, 08 Sep 2009 18:19:01 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-09-08T18:19:01Z</dc:date>
    <item>
      <title>Ending Procedure</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70152#M8049</link>
      <description>I am experimenting with email and ODS.  I have a program that works, but after I receive the email with the correct data, the SAS process never ends.  Is there something I need to add to end it?&lt;BR /&gt;
&lt;BR /&gt;
FILENAME MAIL EMAIL&lt;BR /&gt;
	SUBJECT = "ODS Test."&lt;BR /&gt;
  	FROM = "test@bsi.com"&lt;BR /&gt;
  	TO = "test@bsi.com"&lt;BR /&gt;
  	TYPE = "text/html";&lt;BR /&gt;
&lt;BR /&gt;
ODS HTML BODY=MAIL;&lt;BR /&gt;
&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
SELECT DATEPART(MAX(TRANS_DATE)) FORMAT=MMDDYY8. AS TIER&lt;BR /&gt;
FROM PRODTIER.TIER_POLICY_REPORTS;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
ODS HTML CLOSE;</description>
      <pubDate>Tue, 08 Sep 2009 18:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70152#M8049</guid>
      <dc:creator>cjohnson</dc:creator>
      <dc:date>2009-09-08T18:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ending Procedure</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70153#M8050</link>
      <description>Add the following statement to your SAS program:&lt;BR /&gt;
&lt;BR /&gt;
FILENAME MAIL CLEAR;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 08 Sep 2009 18:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70153#M8050</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-08T18:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ending Procedure</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70154#M8051</link>
      <description>Thanks for replying so quickly.  I added this to the end of the program, but the process still does not end.  The task status still says "Running PROC SQL"&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 08 Sep 2009 18:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70154#M8051</guid>
      <dc:creator>cjohnson</dc:creator>
      <dc:date>2009-09-08T18:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ending Procedure</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70155#M8052</link>
      <description>Maybe the SAS program is still executing?  You will want to try some tests with setting OBS=100 or something to abbreviate the processing.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 08 Sep 2009 18:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70155#M8052</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-08T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ending Procedure</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70156#M8053</link>
      <description>I tried replacing the proc sql with:&lt;BR /&gt;
data _null_; run;&lt;BR /&gt;
but the process still doesn't end.  I also closed the SAS session, reopened, and tried again.  Any suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.</description>
      <pubDate>Tue, 08 Sep 2009 19:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70156#M8053</guid>
      <dc:creator>cjohnson</dc:creator>
      <dc:date>2009-09-08T19:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ending Procedure</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70157#M8054</link>
      <description>I don't understand it, but I got it.  I moved the TO line in the Filename statement as follows:&lt;BR /&gt;
FILENAME MAIL EMAIL "test@bsi.com"&lt;BR /&gt;
	SUBJECT = "RBU &amp;amp; TIERING LOADS."&lt;BR /&gt;
  	FROM = "test@bsi.com"&lt;BR /&gt;
  	TYPE = "text/html";&lt;BR /&gt;
Now it works fine.&lt;BR /&gt;
Thanks again.</description>
      <pubDate>Tue, 08 Sep 2009 19:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Ending-Procedure/m-p/70157#M8054</guid>
      <dc:creator>cjohnson</dc:creator>
      <dc:date>2009-09-08T19:16:18Z</dc:date>
    </item>
  </channel>
</rss>

