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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 936 views
  • 0 likes
  • 2 in conversation