BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
BhargavDesai
Calcite | Level 5

Hello,

We would like to change default 'SAS Output' text that is displayed as Window title to some custom text .

We use following code to output to html files;  the macro loops through several time to create html file for each product (creating hundreds of files) that contains table.  The report uses custom template created using proc template.

ODS html file="test.htm" (url=none)

         style = tabledata2;

ods html close;

I tried to add Options(title='test.txt') stamen before style=tabledata2, but it does not work.  Do I have to make change in Proc template?  if so, in what container and what stamen?

Any help is appreciated.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26

Hi:

  It was my understanding the you do not need options() for the TITLE with ODS HTML. Just this:

ods html file='c:\temp\use_title.html' (title='Wombat');

proc print data=sashelp.class;

run;

ods html close;

cynthia

Here's an example from the doc for the use of TITLE= -- it is a suboption and known to HTML -- doesn't need the word "options" in front of the parentheses. There are a few other suboptions that are specific to HTML, like (DYNAMIC) or (NO_TOP_MATTER) or (URL=), etc.

SAS(R) 9.4 Output Delivery System: User's Guide, Third Edition

View solution in original post

2 REPLIES 2
Cynthia_sas
Diamond | Level 26

Hi:

  It was my understanding the you do not need options() for the TITLE with ODS HTML. Just this:

ods html file='c:\temp\use_title.html' (title='Wombat');

proc print data=sashelp.class;

run;

ods html close;

cynthia

Here's an example from the doc for the use of TITLE= -- it is a suboption and known to HTML -- doesn't need the word "options" in front of the parentheses. There are a few other suboptions that are specific to HTML, like (DYNAMIC) or (NO_TOP_MATTER) or (URL=), etc.

SAS(R) 9.4 Output Delivery System: User's Guide, Third Edition

BhargavDesai
Calcite | Level 5

Thanks for your help.  It worked; 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 2054 views
  • 0 likes
  • 2 in conversation