proc template; define statgraph needleplot; begingraph; entrytitle "IBM Stock Trend"; layout overlay; needleplot x=date y=close / baselineintercept=80 lineattrs=(color=blue); endlayout; endgraph; end; run; proc sgrender data=sashelp.stocks template=needleplot; where stock="IBM" and date > "31dec1999"d; run;