Thank you, Tom. I specified the path to work.templat as follows: ods path work.templat(update) SASUSER.TEMPLAT(read) SASHELP.TMPLMST(READ) ; The macros are working in ' work.templat'. However, when I ran proc lifetest , the procedure pointed to SASUSER.TEMPLAT again. I'm not sure if I can instruct the 'proc lifetest' procedure to point to work.templat. I use the following codes to get the plot. Many functions in the procedure are very nice, and the modularized templates would be very useful if I could point the 'proc lifetest' procedure to work.templat. proc lifetest data=bmt plots=(survival);
time ftime*Status(0);
strata diagnosis;
run; data _null_; %let url = //support.sas.com/documentation/onlinedoc/stat/ex_code/151; infile "http:&url/templft.html" device=url; file 'macros.tmp'; retain pre 0; input; _infile_ = tranwrd(_infile_, '&', '&'); _infile_ = tranwrd(_infile_, '<' , '<'); if index(_infile_, '</pre>') then pre = 0; if pre then put _infile_; if index(_infile_, '<pre>') then pre = 1; run; %inc 'macros.tmp' / nosource; %ProvideSurvivalMacros %let yOptions = label="Survival" linearopts=(viewmin=0.2 viewmax=1 tickvaluelist=(0 .2 .4 .6 .8 1.0)); %CompileSurvivalTemplates Thanks!
... View more