<?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: ODS html/ ODS pdf close in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48766#M13216</link>
    <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your explanation.  &lt;BR /&gt;
&lt;BR /&gt;
So looks like the HTML file is left open.. that makes sense because I have noticed all of the proc freq's that come after this ODS step is included in the HTML document.. I was wondering how those proc freq's got into the HTML document.  Now I see..  &lt;BR /&gt;
&lt;BR /&gt;
Thanks to all of you!</description>
    <pubDate>Fri, 29 Jan 2010 16:10:04 GMT</pubDate>
    <dc:creator>KevinC_</dc:creator>
    <dc:date>2010-01-29T16:10:04Z</dc:date>
    <item>
      <title>ODS html/ ODS pdf close</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48762#M13212</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
The below code works but I don't understand how.  It uses ODS to create an output .html file.  What I don't understand is why is it using ODS HTML with ODS PDF CLOSE?  I was expecting to see ods html with ods html close.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your input.&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
ODS Listing CLOSE;&lt;BR /&gt;
ODS HTML style=barrettsblue&lt;BR /&gt;
&lt;BR /&gt;
body="V:\TMT\\Output\MAP_&amp;amp;campaign_id._Excl_Waterfall.html";&lt;BR /&gt;
proc report &lt;BR /&gt;
.......&lt;BR /&gt;
.......&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ODS PDF CLOSE;&lt;BR /&gt;
ODS LISTING;</description>
      <pubDate>Fri, 29 Jan 2010 15:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48762#M13212</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-01-29T15:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: ODS html/ ODS pdf close</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48763#M13213</link>
      <description>Uhhh - can you share with us who wrote the code?  And I expect you will not see any SAS-generated diagnostic message when the PDF destination is closed, even if not open.  Keep in mind that your open ODS destination(s) will be closed automatically at the end of your session/job.&lt;BR /&gt;
&lt;BR /&gt;
Are you just curious to see the SAS code in your program or are you attempting to debug a "perceived" problem symptom?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 29 Jan 2010 15:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48763#M13213</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-29T15:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS html/ ODS pdf close</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48764#M13214</link>
      <description>Hi:&lt;BR /&gt;
  This will not put any error messages in your log, but it is a problem. For one thing, the HTML file is left open and any subsequent ODS HTML statement will clobber this file. The ODS PDF CLOSE should be corrected to either:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ODS _ALL_ CLOSE or ODS HTML CLOSE;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                           &lt;BR /&gt;
To me, it looks like this might have been an ODS PDF job to start that possibly got used as a model for an ODS HTML job and someone just forgot, or did not know a SAS programmer's mother's best ODS advice:&lt;BR /&gt;
"If you open it (an ODS destination), you must close it (the SAME ODS destination)."&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 29 Jan 2010 15:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48764#M13214</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-01-29T15:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: ODS html/ ODS pdf close</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48765#M13215</link>
      <description>Hi sbb,&lt;BR /&gt;
&lt;BR /&gt;
I am just curious to see why this works.  The person who wrote this code has moved on elsewhere. &lt;BR /&gt;
&lt;BR /&gt;
The code works and I don't see any errors associated with this ODS code.  Is 'ods html close' the proper way to close the destination ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Fri, 29 Jan 2010 16:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48765#M13215</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-01-29T16:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS html/ ODS pdf close</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48766#M13216</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your explanation.  &lt;BR /&gt;
&lt;BR /&gt;
So looks like the HTML file is left open.. that makes sense because I have noticed all of the proc freq's that come after this ODS step is included in the HTML document.. I was wondering how those proc freq's got into the HTML document.  Now I see..  &lt;BR /&gt;
&lt;BR /&gt;
Thanks to all of you!</description>
      <pubDate>Fri, 29 Jan 2010 16:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ODS-html-ODS-pdf-close/m-p/48766#M13216</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-01-29T16:10:04Z</dc:date>
    </item>
  </channel>
</rss>

