BookmarkSubscribeRSS Feed
aha123
Obsidian | Level 7
You can use the REPLAY stored process to replay entries other than embedded images, such as CSS stylesheets, JavaScript... from http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/embedgrf.html

Could anyone tell me how to actually code REPLAY in stored process program for including .css/.js files in the output html stream? Where should I place .css/.js files in the Stored Process Server?
2 REPLIES 2
CameronLawson
Obsidian | Level 7
Do you actually need to? Generally you can store .css and .js files in the head using ods headtext (I think there is a stylesheet option for 9.2 as well). Alternatively, store it in a template via proc template. From what I can see in the documentation, using _replay creates multiple calls to the stored process server within a stored process (correct me if I am wrong). The browser is very good at caching stylesheets and javascripts in an optimal way (especially chrome and firefox). I think using template or headtext would result in more efficient browser processing.

If you do want to use it, it looks like you would have to parse the css or js file via a sas stored process and include the full stored process url in your head section of the stored process output anyway.
aha123
Obsidian | Level 7
Could you give me an example code? Hard to understand what you said in plain words.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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