Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2012, 01:21 PM
Paige Miller
Guest
 
Posts: n/a
Default Combine two ODS HTML outputs into a single HTML File?

Is it possible, in SAS (or elsewhere) to combine two working HTML
files into a single HTML file?

For example, suppose at one time, I create a plot

ods html file="first_output.html";
proc gplot data=sashelp.class;
plot weight*age;
run;
quit;
ods html close;

Later, I create a 2nd plot

ods html file="second_output.html";
proc gplot data=sashelp.class;
plot height*age;
run;
quit;
ods html close;

Can I combine these two HTML files into a single HTML file? I realize
that in this simple example, I could just re-write the code so as to
produce a single HTML file. But in my real-world example, I have one
program producing a complicate (and time consuming) plot in a HTML
file, and a second program producing another complicated plot in a
HTML file, and I would like to combine these into a single HTML file
to send to my client.

--
Paige Miller
paige\dot\miller \at\ kodak\dot\com
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 02-22-2012, 04:15 PM
Reeza
Guest
 
Posts: n/a
Default Re: Combine two ODS HTML outputs into a single HTML File?

This what you're after?

http://support.sas.com/kb/23/660.html
Reply With Quote
  #3 (permalink)  
Old 02-22-2012, 04:17 PM
Reeza
Guest
 
Posts: n/a
Default Re: Combine two ODS HTML outputs into a single HTML File?

You could also look into GREPLAY which is something that I think does what you want, but I'm not 100% sure. Something that's been in my head to look into for a long time, but haven't gotten around to yet.
Reply With Quote
  #4 (permalink)  
Old 02-22-2012, 04:27 PM
Paige Miller
Guest
 
Posts: n/a
Default Re: Combine two ODS HTML outputs into a single HTML File?

On Feb 22, 12:15*pm, Reeza <fkhurs...@gmail.com> wrote:
> This what you're after?
>
> http://support.sas.com/kb/23/660.html


I had already seen this and its not exactly what I am looking for. For
this to work, as I understand it, you have to be prepared to issue the
NO_BOTTOM_MATTER option on the first HTML file and the NO_TOP_MATTER
option on the second HTML file.

In my case, there are two complete HTML files sitting on a disk, each
run by a different program at different times, each difficult (time
consuming) to reproduce, and neither has the NO_TOP_MATTER or
NO_BOTTOM_MATTER option because they need to exist as stand-alone HTML
files (and I also want to combine them into a single file).

I realize that what I am asking for may not be possible, or it may
take large amounts of programming to strip out the parts I don't want
in each file (if indeed I could figure out what parts need to be
stripped out).

Anyway, it sounds like there is no canned method of doing this.

--
Paige Miller
paige\dot\miller \at\ kodak\dot\com
Reply With Quote
  #5 (permalink)  
Old 02-22-2012, 04:28 PM
Paige Miller
Guest
 
Posts: n/a
Default Re: Combine two ODS HTML outputs into a single HTML File?

On Feb 22, 12:17*pm, Reeza <fkhurs...@gmail.com> wrote:
> You could also look into GREPLAY which is something that I think does what you want, but I'm not 100% sure. Something that's been in my head to lookinto for a long time, but haven't gotten around to yet.


GREPLAY would allow me to save the graphs and put them together, but
not the HTML links embedded in the HTML file. If I used GREPLAY, the
plots wouldn't be "clickable".

--
Paige Miller
paige\dot\miller \at\ kodak\dot\com
Reply With Quote
  #6 (permalink)  
Old 02-22-2012, 07:22 PM
Ya
Guest
 
Posts: n/a
Default Re: Combine two ODS HTML outputs into a single HTML File?

On Feb 22, 9:28*am, Paige Miller <paige.mil...@kodak.com> wrote:
> On Feb 22, 12:17*pm, Reeza <fkhurs...@gmail.com> wrote:
>
> > You could also look into GREPLAY which is something that I think does what you want, but I'm not 100% sure. Something that's been in my head to look into for a long time, but haven't gotten around to yet.

>
> GREPLAY would allow me to save the graphs and put them together, but
> not the HTML links embedded in the HTML file. If I used GREPLAY, the
> plots wouldn't be "clickable".
>
> --
> Paige Miller
> paige\dot\miller \at\ kodak\dot\com


How about make another html file and use iframe to bring in the other
two?

<html>
<body>

<iframe src="file://c:\temp\junk.html" height=400px width=400px>
</iframe>

<iframe src="file://c:\temp\report.html" height=400px width=400px>
</iframe>

</body>
</html>

Reply With Quote
  #7 (permalink)  
Old 02-22-2012, 08:13 PM
Paige Miller
Guest
 
Posts: n/a
Default Re: Combine two ODS HTML outputs into a single HTML File?

On Feb 22, 3:22*pm, Ya <huang8...@gmail.com> wrote:
> On Feb 22, 9:28*am, Paige Miller <paige.mil...@kodak.com> wrote:
>
> > On Feb 22, 12:17*pm, Reeza <fkhurs...@gmail.com> wrote:

>
> > > You could also look into GREPLAY which is something that I think doeswhat you want, but I'm not 100% sure. Something that's been in my head to look into for a long time, but haven't gotten around to yet.

>
> > GREPLAY would allow me to save the graphs and put them together, but
> > not the HTML links embedded in the HTML file. If I used GREPLAY, the
> > plots wouldn't be "clickable".

>
> > --
> > Paige Miller
> > paige\dot\miller \at\ kodak\dot\com

>
> How about make another html file and use iframe to bring in the other
> two?
>
> <html>
> <body>
>
> <iframe src="file://c:\temp\junk.html" height=400px width=400px>
> </iframe>
>
> <iframe src="file://c:\temp\report.html" height=400px width=400px>
> </iframe>
>
> </body>
> </html>


Thanks!

As always, when I get stumped, Ya and data _null_; have the answers!

--
Paige Miller
paige\dot\miller \at\ kodak\dot\com
Reply With Quote
  #8 (permalink)  
Old 02-23-2012, 03:12 AM
shiva
Guest
 
Posts: n/a
Default Re: Combine two ODS HTML outputs into a single HTML File?

Hi,

Try this...

ods tagsets.htmlpanel file="test.html";
ods tagsets.htmlpanel event=row_panel(start);
ods tagsets.htmlpanel event=column_panel(start);

proc print data=sashelp.class;run;
proc print data=sashelp.class;run;

ods tagsets.htmlpanel event=column_panel(finish);

proc gchart data=sashelp.class;
hbar age / sumvar=height;
run;

ods tagsets.htmlpanel event=row_panel(finish);

ods tagsets.htmlpanel close;

Thanks,
Shiva
Reply With Quote
  #9 (permalink)  
Old 02-23-2012, 12:04 PM
Paige Miller
Guest
 
Posts: n/a
Default Re: Combine two ODS HTML outputs into a single HTML File?

On Feb 22, 11:12*pm, shiva <shiva.said...@gmail.com> wrote:
> Hi,
>
> Try this...
>
> ods tagsets.htmlpanel file="test.html";
> * *ods tagsets.htmlpanel event=row_panel(start);
> * *ods tagsets.htmlpanel event=column_panel(start);
>
> * *proc print data=sashelp.class;run;
> * *proc print data=sashelp.class;run;
>
> * *ods tagsets.htmlpanel event=column_panel(finish);
>
> * *proc gchart data=sashelp.class;
> * * *hbar age / sumvar=height;
> * *run;
>
> * *ods tagsets.htmlpanel event=row_panel(finish);
>
> * *ods tagsets.htmlpanel close;
>
> Thanks,
> Shiva


I don't understand this. I don't see how it solves the problem.

--
Paige Miller
paige\dot\miller \at\ kodak\dot\com
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 06:30 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.