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

In a stored process using a custom style is not to difficult:

ods html5 body=_webout(no_bottom_matter url=&_replay title= "yet another title") path=&_tmpcat cssStyle="path-to-css-file";

This does not work in SAS Studio, research lead me to http://support.sas.com/documentation/cdl/en/webeditorug/68828/HTML/default/viewer.htm#n0npxqhd54fc7z... explaining how to use a custom style. Unfortunately this does not work as expected. Expectation is, that the result tab contains, e.g. proc print, results formated with the information from my css file. The best result I had was an empty result tab and a well formatted html-file in WORK. Acceptable is a download/open link comparable to result tag in Enterprise Guide, when using explicit ods statements.

 

Any ideas?

 

Using SAS Studio 3.6 @ SAS BI Server.

 

1 ACCEPTED SOLUTION

Accepted Solutions
FriedEgg
SAS Employee

_webout is for stored process

_htmlout is for results windows when using SAS Studio

 

ods html5(WEB) file=_HTMLOUT stylesheet=(URL="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css");
proc print data=sashelp.class style={class="striped"};
id name / style={fontfamily="Roboto" fontsize=16};
var sex age height weight;
run;

View solution in original post

3 REPLIES 3
Tom
Super User Tom
Super User

Generate a separate output that has the link to the location where you wrote the HMTL file.

You might need to know how your webservers are configured to know how to coordinate the path used in the SAS code with the path used in the link.

FriedEgg
SAS Employee

_webout is for stored process

_htmlout is for results windows when using SAS Studio

 

ods html5(WEB) file=_HTMLOUT stylesheet=(URL="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css");
proc print data=sashelp.class style={class="striped"};
id name / style={fontfamily="Roboto" fontsize=16};
var sex age height weight;
run;
andreas_lds
Jade | Level 19

Thanks, wasn't aware of _htmlout Smiley Frustrated

 

Using cssStyle-options works also.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 3 replies
  • 957 views
  • 1 like
  • 3 in conversation