Hi,
Is there a way to retrieve style properties for SAS-supplied styles in EG? Normally one could use the DM command ODSTEMPLATE but there isn't a DM in EG. Wasn't able to find anything in the menu system.
This is in both EG 4.1 adn 4.3.
Thanks!
--Ben
Not sure if this is what you're looking for, in SAS EG, Tools> Style Manager, save a copy of the style somewhere you want and go play with that. It stores styles as CSS style sheets though I believe.
Not sure if this is what you're looking for, in SAS EG, Tools> Style Manager, save a copy of the style somewhere you want and go play with that. It stores styles as CSS style sheets though I believe.
That is correct, it does store it as a standard css. But that will give me the opportunity to compare how 2 style sheets differ.
The underlynig problem is the color selection is different between what's getting displayed in EG vs what appears on the Stored Process server in a web page. This at least will give me a start.
Thanks, Reeza!
--Ben
Hi:
I believe that EG uses style EGDEFAULT for output (unless you change it), but that stored processes use the default style that's set for each client application for stored process results. So, for example, Web Report Studio might use the SEASIDE style and the Information Delivery Portal might surface the stored process using another style, like DEFAULT or HTMLBLUE, depending on your version of SAS.
You can override the style for MOST client applications (but not all) by using the following options in your stored process:
%LET _ODSSTYLE=SASWEB;
%stpbegin;
....stored process code;
%stpend;
Note that the overrides to the style must occur BEFORE the %STPBEGIN macro invocation. In some instances, this may mean manually adding the overrides to your stored process code. And, not all client applications use the style template from &_ODSSTYLE reserved macro variable. For example, a client application like Web Report Studio only uses styles that are defined in the XML configuration on the middle tier for WRS. So you have to use other methods to change the style of stored process results that are going to be surfaced in WRS.
BTW, to see the list of SAS Style Templates on your server, you can submit this code from within an EG code node:
proc template;
list styles;
run;
cynthia
Hi Cynthia,
Thanks for the information. Looking at the templates procedure, I see I can decompile a template(aka, css stylesheet?). I guess I need now to find where the (in this case) statistical style resides in the path EG uses and compare it to the one the web portal uses, then use the source statement to write out the definitions to the log file. Then I can compare then to see if they use the same color mappings.
Does this sound reasonable?
--Ben
Hi:
I'd actually recommend that you work with Tech Support on this. It could be as simple getting your SAS administrator to put a copy of the desired style in the XML style definition that the middle tier uses. But, truly, the SAS-delivered STATISTICAL style should deliver the same results whether you are using EG or through a stored process (as long as the same version of SAS is being used). I think it is more likely that you are 1) either not providing the correct style override to use the STATISTICAL style in your stored process or 2) your SAS/GRAPH code has overrides which cancel out the style info from the template or .... ??? I think it would be easier for you (and probably shorter to debug in the long run) to start out by working with Tech Support instead of comparing style templates.
cynthia
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.