BookmarkSubscribeRSS Feed
deleted_user
Not applicable
TS Note 17681 provides a solution to the situation where you define a style and make it available to your E.G. session through Tools / Style Manager. I went through the process of creating a custom style, and redefined the style using a UNC so that any project calling on the style would not need to have the same drive mappings as my PC. When running on the LOCAL server, my client found and used the style, but when I redefined the project to the remote server, I got these messages in the log:

WARNING: Style MYTEAMDEFAULT not found; Default style will be used instead.

. . . .

11 ! STYLESHEET=(URL="file://aserver/amount/eg41projects/MYTEAMDefault.css")

The TSNote says this is an issue since E.G. V3 and suggests renaming the style to the same as a SAS standard style.

Is this a style table issue that will be fixed later? The TSNote doesn't say.

Is this a server context fix, or does each client need to do the renaming?

I thought I saw this discussed here previously but cannot seem to find the thread.

Kind regards

David
3 REPLIES 3
ChrisHemedinger
Community Manager
David,

This happens because EG generates and ODS statement like the following:

ODS HTML ... STYLE=MYSTYLE STYLESHEET=(URL="path-to-MYSTYLE.css")...

The STYLE= value results in the warning if there is no ODS style template that matches that name. For the built-in styles (ANALYSIS, MEADOW, and so on), there are matching ODS templates. But when you define your own style sheet and give it a meaningful name, it probably won't match an installed template.

The warning is an annoyance, but not necessarily a problem since the output appearance will be controlled mostly by your custom style anyway. If you want to avoid the warning, you can create an ODS style template with PROC TEMPLATE (examples on the Base SAS focus area on the support site).

Chris
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
Cynthia_sas
SAS Super FREQ
AND, good news, starting in 9.2, you will be able to turn a custom CSS file into an ODS style template by using the new IMPORT statement to create a STYLE template that could be used with HTML, RTF AND PDF -- as well as using the CSS file for EG and/or HTML.

cynthia
deleted_user
Not applicable
I have the same warning with SAS EG 4.

Should i put the proc template within my project and run every time i want to use my template?

and where should i save my '.css' files or it doesn't matter?

Kind regards,

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1858 views
  • 0 likes
  • 3 in conversation