BookmarkSubscribeRSS Feed
milts
Pyrite | Level 9

Hi Experts,

I would like to use ods html to output an excel file(since tagsets.excelxp creates larger files). However when I try to generate the file using the style sasweb it is not applied on the excel. For seaside, sansprinter, money, it works.

Please see example code below and please point out if I did something wrong?

data x;

    a = 1;

    b = 2;

run;

ods html file="D:\mytest.xls" style=sasweb;

    proc print data=x;

    run;

ods html close;

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  Try using a Microsoft-friendly version of HTML markup language. Microsoft does not always like the way that ODS HTML specifies style because Microsoft did not like the HTML 4.0 method of specifying style. That destination would be:

 

ods msoffice2k file="D:\mytest.xls" style=sasweb;

    proc print data=x;

    run;

ods msoffice2k close;

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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