<?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 DOCUMENT CLOSE doesn't work in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-DOCUMENT-CLOSE-doesn-t-work/m-p/669097#M24257</link>
    <description>&lt;P&gt;When I run your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name=temporary;

proc print data= sashelp.cars (obs=10);
run;

proc print data= sashelp.stocks (obs=10);
run;

ods document close;

proc document name=temporary;
replay;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;repeatedly, I always get the same output: PRINT for cars and stocks from the original call, and then again from the REPLAY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cancel the above; I had only the PROC DOCUMENT marked when hitting "submit".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SIG_NOT_ENOUGH_COFFEE.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 06:39:28 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-07-14T06:39:28Z</dc:date>
    <item>
      <title>ODS DOCUMENT CLOSE doesn't work</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-DOCUMENT-CLOSE-doesn-t-work/m-p/668967#M24254</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code doesn't work as intended. What I want to do is to save two results in ODS DOCUMENT named temporary and to recall them later by using PROC DOCUMENT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the code once, it seemed that it worked given that there was no error. PROC DOCUMENT also showed two results from previous PROC PRINT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I run the code again (i.e., twice), PROC DOCUMENT showed "two times" of what I expect to see. It implies that ODS DOCUMENT CLOSE didn't work as I intended. Instead, ODS DOCUMENT seems to keep recording the code that has been executed. Did I do something wrong? Thanks for reading.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name= temporary;
proc print data= sashelp.cars (obs= 10); run;
proc print data= sashelp.stocks (obs= 10);run;

ods document close;

proc document name= temporary; replay; run; quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 20:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-DOCUMENT-CLOSE-doesn-t-work/m-p/668967#M24254</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2020-07-13T20:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS DOCUMENT CLOSE doesn't work</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-DOCUMENT-CLOSE-doesn-t-work/m-p/668976#M24255</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=n0nz6m09jrb7jsn1h8rngbvzk65u.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=n0nz6m09jrb7jsn1h8rngbvzk65u.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the WRITE access option.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 21:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-DOCUMENT-CLOSE-doesn-t-work/m-p/668976#M24255</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2020-07-13T21:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: ODS DOCUMENT CLOSE doesn't work</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-DOCUMENT-CLOSE-doesn-t-work/m-p/669097#M24257</link>
      <description>&lt;P&gt;When I run your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name=temporary;

proc print data= sashelp.cars (obs=10);
run;

proc print data= sashelp.stocks (obs=10);
run;

ods document close;

proc document name=temporary;
replay;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;repeatedly, I always get the same output: PRINT for cars and stocks from the original call, and then again from the REPLAY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cancel the above; I had only the PROC DOCUMENT marked when hitting "submit".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SIG_NOT_ENOUGH_COFFEE.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 06:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-DOCUMENT-CLOSE-doesn-t-work/m-p/669097#M24257</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-14T06:39:28Z</dc:date>
    </item>
  </channel>
</rss>

