When starting your ods output, specify all necessary physical and logical paths:
ods html file=outfile1
path="&outpath./"
(url="http://XXX/~%sysget(USER)/&urlpath./")
gpath="&outpath./&graphbase./"
(url="http://XXX/~%sysget(USER)/&urlpath./&graphbase./")
;
In this example (taken from one of our batchjobs), path and gpath contain the physical file/path names where the files are written, while the url= options name the logical paths that are written into the files when creating the links to sub-pages and graphics. This makes sure that all graphics show up correctly when the main page is accessed by browser.
So imagine we want to create a HTML report called myreport, and the job is run by user itsme on server xxx.com:
%let outpath=$HOME/public_html/myreport;
%let graphbase=graphics;
%let urlpath=myreport;
filename outfile1 "&outpath./myreport.html";
/* ods statement with resolved values */
ods html file="/home/itsme/public_html/myreport/myreport.html"
path="/home/itsme/public_html/myreport/"
(url="http://xxx.com/~itsme/myreport/")
gpath="/home/itsme/public_html/myreport/graphics/"
(url="http://xxx.com/~itsme/myreport/graphics/")
;
When you now access http://xxx.com/~itsme/myreport/myreport.html, all graphics will appear nicely, and links to sub-pages (eg from proc report) will also work.
... View more