BookmarkSubscribeRSS Feed
mathias
Quartz | Level 8

Hi,

I created a template style to make all generated graphics uniform.

It is writen in my code like this :

"

ODS PATH(PREPEND) work.templat(update);

proc template;

     define style wivisp_SASstyle;

     parent = Styles.Normal;

     style GraphColors /

          'gborderlines' = white

          'goutlines' = black

     ...

end;

"

then in EG I added the template in Tools > Style manager > add

In sas enterprise guide, I can see it works : graphs are in the right colors

But when I create a stored process from my egp (right clic > "Create stored process" > next next finish), all colors are changed.

How do I apply my custom template to the results of my stored process ?

Is writing a proc template a good waprocessy to do procede ?

Many thanks

I use Enterprise guide 4.3 and SAS 9.2

3 REPLIES 3
mathias
Quartz | Level 8

adding this line seems to apply the style on tables but no graphics are shown

ods html file=_WEBOUT ENCODING='utf-8' STYLE=wivisp_SASstyle;

mathias
Quartz | Level 8

ods html style=wivisp_SASstyle;

/* no file statement for stored process !!! */

seem to apply my style to graphics of the stored process.

not to background of the page, titles and tables...

DanH_sas
SAS Super FREQ

The style has to be specified on the _ODSSTYLE macro variable to affect all of your output. the macro variable is used by the %stpbegin() macro when initializing the ODS destination. Therefore, try this:

%let _ODSSTYLE=wivisp_SASstyle;

%stpbegin();

Let me know if this works for you.

Thanks!

Dan

sas-innovate-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

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