BookmarkSubscribeRSS Feed
Kastchei
Pyrite | Level 9
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
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1093 views
  • 0 likes
  • 2 in conversation