BookmarkSubscribeRSS Feed
JenHarper
Calcite | Level 5

We are trying to write a custom style template to code all of our shewhart, report, gchart, gplot output to a reasonably standard look and feel.  We have working proc template code that works on the PC of the programmer developing it.  She is able to write out .css and .sas7bitm to a network folder.

However, I do not seem to be able to use the style either through EG style manager or through an ODS path statement.

Through EG style manager.

  • I've pasted the .css to my local EG \styles folder and it shows up in the list of built-in styles.
  • That style is now my default style
  • I'm seeing the following in my log

12 ODS tagsets.sasreport12(ID=EGSR) FILE=EGSR STYLE=AMODefault

12 ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/EnterpriseGuide/4.3/Styles/AMODefault.css") NOGTITLE NOGFOOTNOTE

12 ! GPATH=&sasworklocation ENCODING=UTF8 options(rolap="on");

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

NOTE: Writing TAGSETS.SASREPORT12(EGSR) Body file: EGSR

We are trying to write out to .png (for graphics) and to .pdf or .rtf for tables.  All are then pasted into a PPT doc.

4 REPLIES 4
Reeza
Super User

This isn't the best way to do this, but would probably work.

Go to SAS EG Style Editor and pick any style and create a copy, name that copy AMODefault or what you want it to be called. Note where you're instance of SAS is saving the file to.

Navigate to that location and replace the code in that copy with the CSS code you have.

Let me know if it works.

JenHarper
Calcite | Level 5

I copied money and named it as dev_BestCareFY12.css. Even before replacing with my .css file, I tried to run my code and got the same warning below.

Copying my .css to that filename and location was no better.

I'm wondering if the full URL is part of the problem...

11 FILENAME EGSR TEMP;

12 ODS tagsets.sasreport12(ID=EGSR) FILE=EGSR STYLE=dev_BestCareFY12

12 ! STYLESHEET=(URL="file://myserver/sasresources/styles/output/dev/dev_BestCareFY12.css") NOGTITLE NOGFOOTNOTE

12 ! GPATH=&sasworklocation ENCODING=UTF8 options(rolap="on");

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

NOTE: Writing TAGSETS.SASREPORT12(EGSR) Body file: EGSR

Reeza
Super User

Sorry, I didn't look fully at the code.Your best bet is talking to the person who created it.

It looks like she created a unique tagset implementation, not a CSS style otherwise you could state cssstyle=..

Cynthia_sas
SAS Super FREQ

Hi:

  I believe you have several possible issues:

1) you said that the CSS file and the style template in a SAS7BITM item store were written to a "network" folder. Unless this network folder is accessible to the server where SAS is executing, your style template will not be found.

2) generally, with EG, you need an ODS PATH PREPEND in order to put YOUR item store in the template search path BEFORE the default EG template store is found. This Tech Support note talks about an updated template that uses an image. Even if your template does not use an image, the ODS PATH statement you need will be similar to the one shown in the note:

http://support.sas.com/kb/15/201.html or this one http://support.sas.com/kb/23/446.html . By default, EG adds its own template store to the two default template stores (SASHELP.TMPLMST and SASUSER.TEMPLAT). So you really need to work on making sure that YOUR item store is accessible on the server (#1) and that you have the appropriate ODS PATH statement.

Then, you're not done yet. IF you are running in the context of the SAS Platform for Business Analytics, also known as the BI Platform, and running stored processes, you will need to make sure that the item store is accessible to the Workspace Server and/or Stored Process Server and/or SAS Web Report Studio. Under this scenario, you might want to work with Tech Support to be sure that your item store and CSS file are stored and referenced appropriately.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 4 replies
  • 1502 views
  • 3 likes
  • 3 in conversation