Hi all, Before seeing any of your posts, I figured it out. I wanted to share my solution with you guys. Sorry that I haven't used any of your possibly excellent solutions (yet), I will read them all and possibly change to that once time permits. I needed a solution ASAP for this the story goes like this: SAS runs on a linux machine where the root of things is "data2/data/" and somewhere below that my html file is created. I have no access to the linux other than through the SAS/EG, which sits on on a Win Server 2008 that I access through RDC. On the latter, which is also the location where I access the produced html, the same location as above is "\\sv-secret\", ;-). So what happens is: the html is pointing the png it produced to a location that is not existing and therefore it is not showing up in the html. My solution was the following: - explicitely point the png files to the right location (which I did not do before) - still linux though (see gpath remark below) - read in the produced html (rnamed toProcess.html) - alter the "data2/data/" to become "\\sv-secret\" and while at it change all / to \ - write out the latter to a new html file Note, before that I tried gpath = using the target for that as the "\\sv-secret\" but SAS complained about that location not existing (which does not on the linux where the SAS is running) and said it ignored that... It is convoluted but it works - as said, I might change for something nicer when time permits, :-D. Thanks 4 your answers! /* Post-processing the produced HTML */
data html_in;
length FullLine $32767.;
infile "&OUTPUT_PATH./ToProcess.html" dlm='°' lrecl=32767 dsd;
/*if anyone has a better idea for the dlm='°', do let me know, :-). I basically do not want to stop reading a record before it ends, that's why I took a dlm which is a char that doesnt exist in the file - all quick dirty but working, :-D */
input FullLine $;
run;
data html_out;
set html_in;
if index(FullLine,'.png') and index(FullLine,'src=') then do;
FullLine = tranwrd(tranwrd(FullLine,'/data2/data/','\\sv-secret\'),'/','\');
end;
run;
data _null_;
set html_out;
file "&OUTPUT_PATH./DQ_Master_&DTSTAMP..html";
put FullLine;
run;
... View more