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.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 858 views
  • 0 likes
  • 2 in conversation