BookmarkSubscribeRSS Feed
Filipvdr
Pyrite | Level 9

Hello,

We have a folder with 500 SHTML files. Each file is for one user.

For example my file is called VDREYM.SHTML

My metauser = vdreym.

I want to include the metauser his SHTML file into a stored process.

But this won't work, also not when I have the direct link to my board.

data _null_;
file _webout;
put '<!--#include file="http://imecwww.imec.be/~osp/fab300/user_monitor_boards/&_metauser.shtml" -->'
;
run;

data _null_;
file _webout;
put '<!--#include file="http://imecwww.imec.be/~osp/fab300/user_monitor_boards/VDREYM.shtml" -->'
;
run;

3 REPLIES 3
RMP
SAS Employee RMP
SAS Employee

Hello,

ok the second data _null_ should work. The first one has some issues with the resolving of the macro variable. You will need to swap the single and double quotes otherwise the macro variable will not be resolved - put "<!--#include file='

and also after the &_metauser variable you will need two fullstops, one to mark the end of the macro and one for the filename extension.

is this working with static html outside of the Stored Process web application?

if not then perhaps Server Side Include has not been configured on your application server (JBoss? Tomcat?)

RMP

Filipvdr
Pyrite | Level 9

How can I check this SSI is configured?

I found the following:

data _null_;

file _webout;

put '<!--#echo var="DATE_LOCAL" -->';

run;

But this does not return anything. The source code seems ok:

<!--#echo var="DATE_LOCAL" -->

RMP
SAS Employee RMP
SAS Employee

Sorry this is not my area, but If you do a google search for JBOSS and Server Side Include, then you will get enough information. You need to uncomment a setting in the conf.xml file. 

I just checked - http://docs.jboss.org/jbossweb/2.1.x/ssi-howto.html.

Server Side Include is disabled  by default on JBoss.

Message was edited by: RMP

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!

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