Here is my code with adding your code at the beginning. Thanks. ods graphics on; 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; %inc "D:\XXX\KMmacros.sas"; %ProvideSurvivalMacros %let LegendOpts = ; %let tatters = textattrs=(size=12pt family='Times New Roman'); %let TitleText0 = "XXX"; %let TitleText1 = &titletext0 " for " STRATUMID/&tatters; %let TitleText2 = &titletext0/&tatters; %let ntitles=1; %let yOptions = offsetmin=0 label="XXX" labelattrs=(size=12pt family='Times New Roman') tickvalueattrs=(size=12pt family='Times New Roman') linearopts=(viewmin=0 viewmax=1 tickvaluelist=(0 .2 .4 .6 .8 1)); %let xOptions = offsetmin=0 shortlabel=XNAME labelattrs=(size=12pt family='Times New Roman') tickvalueattrs=(size=12pt family='Times New Roman') linearopts=(viewmin=0 viewmax=2 tickvaluelist=(0 .5 1 1.5 2)); %let AtRiskOpts = labelattrs=(family='Times New Roman' size=12pt) valueattrs=(family='Times New Roman' size=12pt); %CompileSurvivalTemplates
... View more