BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I want to use custom style (custStyle) that i created using proc template (stored in sashelp.mystore) in my stored process.
Where I should put ods path code like ods PATH (PREPEND) sashelp.mystore; so that custStyle is available when i use _ODSSTYLE reserved macro variable ,(_ODSSTYLE=custStyle;) in stored process.

Warm Regards,
Sunil Gandhi
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
This is a bigger question than just an ODS PATH question. Remember that the stored process server or workspace server have no visibility of files or libraries on your personal machine. So you need to get the style template written to the server file
system(s). And then, you may have to worry about a bit more than just your ODS PATH statement.

Sometimes, you need more than just a style template in the Enterprise Intelligence Platform -- you may need a style template and also a CSS version of the same template. That way, if your stored process will be returned to a web browser, then you can use the CSS version; if your stored process will be returned to Web Report Studio you'll have to use CSS instead of a SAS style template -- generally WRS ignores a custom style template or any _ODSSTYLE overrides. If you are using EG or the Add-in for Microsoft Office, you may need to make sure that a copy of the CSS file and a copy of the style template is on the right server for stored process execution. Or you may also need to override the _ODSSTYLESHEET option, which many of the client applications set by default and which could collide with your setting for _ODSSTYLE.

One thing that you could do, is write your stored process so that the template is "in-stream" and compiled into a temporary item store on the server every time the stored process is run. The Platform Administration Guide has a description of how to customize styles for WRS and the Portal (http://support.sas.com/rnd/itech/doc9/portal_dev/themes/index.html).

Generally, the ODS PATH statement works like this for creating:
[pre]
LIBNAME srvlib '//srvname/dir/subdir';
ODS PATH(PREPEND) srvlib.TemplateStore(UPDATE);
** you must have write access to the server location;
proc template code;

[/pre]

But then, that's just going to write the template to the server. You'll also have to make sure that the startup file (the one that starts up a server instance for executing stored processes) ALSO includes a LIBNAME and an ODS PATH statement when the server is started up. Or else you could include the template code in your stored process and create the template in WORK for each user.

For more help figuring our which method applies to your situation and which server is the right server and how to reference the style template and CSS on the server and how to set your LIBNAME statement and ODS PATH statements, your best bet for help is to contact Tech Support.

cynthia

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1066 views
  • 0 likes
  • 2 in conversation