<?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: Append outputs to the beginning of an existing html file in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Append-outputs-to-the-beginning-of-an-existing-html-file/m-p/51902#M6558</link>
    <description>Hi:&lt;BR /&gt;
  All the appending that you do with ODS HTML happens at the end of the file not at a place that you choose. You can't really "prepend" a file at the "top". One thing you might consider doing --would be to save the PROC COMPARE output to an ODS DOCUMENT store and then to do your PROC PRINT followed by a PROC DOCUMENT replay for the PROC COMPARE output objects. &lt;BR /&gt;
&lt;BR /&gt;
I have used PROC DOCUMENT and ODS DOCUMENT for storing and replaying output objects, but not with PROC COMPARE. Although, this paper shows using PROC COMPARE with ODS DOCUMENT:&lt;BR /&gt;
&lt;A href="http://www.nesug.org/proceedings/nesug07/ap/ap15.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug07/ap/ap15.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
So that is one avenue to try. If you prefer not to work with ODS DOCUMENT and PROC DOCUMENT, the only thing I can think of is to create your HTML file with PROC COMPARE, then create a separate HTML file for the PROC PRINT and then write a DATA Step program to post-process the first file and to insert the second file wherever you want.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Sun, 17 Apr 2011 18:16:13 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-04-17T18:16:13Z</dc:date>
    <item>
      <title>Append outputs to the beginning of an existing html file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Append-outputs-to-the-beginning-of-an-existing-html-file/m-p/51901#M6557</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I'm currently working with SAS v9.1.3 and ods html.&lt;BR /&gt;
1- I'm using proc compare and all the comparisons are put in my html file.&lt;BR /&gt;
2- Using the outdiff option in proc compare statement, I can create a dataset which is intended to provide a nice summary of all the comparisons. I do a proc print of this summary dataset to be put in the html file also.&lt;BR /&gt;
&lt;BR /&gt;
However, I would like to put this summary at the very beginning of my file (and not at the end). &lt;BR /&gt;
I have tried using notop, nobot options. But nothing works fine or probably I'm not using it correctly. Is there any way to tell to SAS to put this proc print at a specific location in the html file ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot in advance for your help,&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
&lt;BR /&gt;
Violaine</description>
      <pubDate>Sun, 17 Apr 2011 14:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Append-outputs-to-the-beginning-of-an-existing-html-file/m-p/51901#M6557</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2011-04-17T14:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Append outputs to the beginning of an existing html file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Append-outputs-to-the-beginning-of-an-existing-html-file/m-p/51902#M6558</link>
      <description>Hi:&lt;BR /&gt;
  All the appending that you do with ODS HTML happens at the end of the file not at a place that you choose. You can't really "prepend" a file at the "top". One thing you might consider doing --would be to save the PROC COMPARE output to an ODS DOCUMENT store and then to do your PROC PRINT followed by a PROC DOCUMENT replay for the PROC COMPARE output objects. &lt;BR /&gt;
&lt;BR /&gt;
I have used PROC DOCUMENT and ODS DOCUMENT for storing and replaying output objects, but not with PROC COMPARE. Although, this paper shows using PROC COMPARE with ODS DOCUMENT:&lt;BR /&gt;
&lt;A href="http://www.nesug.org/proceedings/nesug07/ap/ap15.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug07/ap/ap15.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
So that is one avenue to try. If you prefer not to work with ODS DOCUMENT and PROC DOCUMENT, the only thing I can think of is to create your HTML file with PROC COMPARE, then create a separate HTML file for the PROC PRINT and then write a DATA Step program to post-process the first file and to insert the second file wherever you want.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sun, 17 Apr 2011 18:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Append-outputs-to-the-beginning-of-an-existing-html-file/m-p/51902#M6558</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-17T18:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Append outputs to the beginning of an existing html file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Append-outputs-to-the-beginning-of-an-existing-html-file/m-p/51903#M6559</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much for you help here! I have used the proc document (which I did not know... always nice to know more and more about SAS).&lt;BR /&gt;
Thanks again for your very helpful support!&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Violaine</description>
      <pubDate>Tue, 19 Apr 2011 09:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Append-outputs-to-the-beginning-of-an-existing-html-file/m-p/51903#M6559</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2011-04-19T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Append outputs to the beginning of an existing html file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Append-outputs-to-the-beginning-of-an-existing-html-file/m-p/51904#M6560</link>
      <description>Yes, I think PROC DOCUMENT and ODS DOCUMENT are quite cool! I'm glad you got it working.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 19 Apr 2011 15:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Append-outputs-to-the-beginning-of-an-existing-html-file/m-p/51904#M6560</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-19T15:48:50Z</dc:date>
    </item>
  </channel>
</rss>

