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
SAS Super FREQ

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
SAS Super FREQ

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; 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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