Your SAS programs, embedded in web apps and elsewhere

Override stpbegin style

Reply
Super Contributor
Posts: 318

Override stpbegin style

Hi,

How do I override the style when using stpbegin and stpend?

I tried to copy then rename Meadow.css then changed the body background to black to check if doing something like that works. then changed the _ODSSTYLE to the renamed one before stpbegin. However I just got the gray default.

Any ideas or tips on proper creation and customization?

Thanks,
Milton
SAS Super FREQ
Posts: 8,743

Re: Override stpbegin style

Hi:
If you are overriding the style TEMPLATE, then you use _ODSSTYLE as the override. If you are overriding the CSS file or stylesheet file, then you use _ODSSTYLESHEET as the reserved macro variable to override.
http://support.sas.com/documentation/cdl/en/stpug/61271/HTML/default/viewer.htm#a003152603.htm

Do note that some client applications, such as Web Report Studio need to have the CSS changed via a different mechanism and other client applications, such as the SAS Add-in for Microsoft Office, have Options that need to be set in order for the style to be used. You did not say under what client application you were running your stored process, so it is hard to know what to recommend.

This Tech Support note shows one method of referencing an external CSS file:
http://support.sas.com/kb/30/783.html

cynthia
Super Contributor
Posts: 318

Re: Override stpbegin style

Hi Cynthia,

Thank you very much for the very useful links.

Btw, I'm running the stored process as a link on SAS Portal. I have these chained stored processes which at the end has a graph output. To output the graph on the streaming stored process I used %stpbegin and %stpend. But when doing this it turns the whole page intro gray which is the default background of graph output.

Current workaround I did was instead of using %stpbegin and %stpend I created an whose source is another stored process where i placed the proc gchart.

Regards,
Milton
Ask a Question
Discussion stats
  • 2 replies
  • 276 views
  • 0 likes
  • 2 in conversation