Desktop productivity for business analysts and programmers

Getting graphics style properties on templates in EG

Accepted Solution Solved
Reply
Regular Contributor
Posts: 179
Accepted Solution

Getting graphics style properties on templates in EG

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


Accepted Solutions
Solution
‎01-23-2012 12:20 PM
Super User
Posts: 19,171

Getting graphics style properties on templates in EG

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.

View solution in original post


All Replies
Solution
‎01-23-2012 12:20 PM
Super User
Posts: 19,171

Getting graphics style properties on templates in EG

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.

Regular Contributor
Posts: 179

Getting graphics style properties on templates in EG

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

SAS Super FREQ
Posts: 8,820

Getting graphics style properties on templates in EG

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

Regular Contributor
Posts: 179

Getting graphics style properties on templates in EG

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

SAS Super FREQ
Posts: 8,820

Getting graphics style properties on templates in EG

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

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 181 views
  • 0 likes
  • 3 in conversation