The SAS Output Delivery System and reporting techniques

ODS HTML creating multiple files

Reply
Frequent Contributor
Posts: 80

ODS HTML creating multiple files

Hello,

My ODS HTML is working differently than in past versions (Windows XP, SAS v9.2).

The problem is that the code below is creating two separate files, one for each PROC FREQ, one called test.html and another called test1.html. I would like the tables to appear in one HTML file, one after the other.

The problem appears to be happening in conjunction with the Tools/Options/Preferences/Results [tab]/HTML option. With 'Create HTML' checked, test and test1 are created, but with it unchecked, I get the desired behaviour of one file called test with two frequency tables inside.

Is there another option I need to set if I'm using the HTML results preference checked?

ods html file = 'H:\test.html';
proc freq data = a;
table q0c;
run;
proc freq data = b;
table q0c;
run;
ods html close;

Message was edited by: Kastchei Message was edited by: Kastchei
Super Contributor
Super Contributor
Posts: 3,174

Re: ODS HTML creating multiple files

Somehow you are getting the SAS ODS option NEWFILE=PROC associated with your SAS execution. On the ODS statement, try coding NEWFILE=NONE to suppress/override the behavior.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 1 reply
  • 160 views
  • 0 likes
  • 2 in conversation