data linetext;
length function color $ 8 text $ 20;
retain function 'label' xsys ysys '2' hsys '3' position '6'
style 'swiss' size 3 when 'A';
set mydata end=last;/*mydata序列数据 本例是最后一个点标识*/
if last then
do;
x=dt1;
y=cp; text='上证指数'; color='black'; output;
end;
run;