以前我有:
ods escapechar="^";
TITLE 'Daily Report';
TITLE2 '^S={URL="\\it4\Project_Data\Daily_Detail.xlsx"} For source data Click Here';
options orientation=landscape;
axis1 order=(&mindate to &maxdate by week)
offset=(3,3)
label=none
major=(height=1 width=1)
minor=(number=6 height=.5 width=1)
width=1;
PROC GPLOT DATA = Letters_Summary;
BY Category;
PLOT Number_Sent*date_sent=Category / haxis = axis1;
symbol interpol=join l=1 w=3;
WHERE category NE "Miscellaneous"
AND category NE "Verification";
RUN;
这没有用。看来 label 和 label2 语句需要紧接在 GPLOT 之前。我现在有:
options orientation=landscape;
axis1 order=(&mindate to &maxdate by week)
offset=(3,3)
label=none
major=(height=1 width=1)
minor=(number=6 height=.5 width=1)
width=1;
ods escapechar="^";
TITLE 'Daily Report';
TITLE2 '^S={URL="\\it4\Project_Data\Daily_Detail.xlsx"} For source data Click Here';
PROC GPLOT DATA = Letters_Summary;
BY Category;
PLOT Number_Sent*date_sent=Category / haxis = axis1;
symbol interpol=join l=1 w=3;
WHERE category NE "Miscellaneous"
AND category NE "Verification";
RUN;
现在它起作用了。我不确定为什么选项或轴语句会干扰使标题成为链接。