%let name=gplot_pollen_weed; filename odsout '.'; %let type=Weeds; libname here '.'; goptions device=png; goptions xpixels=3000 ypixels=500 noborder; ODS LISTING CLOSE; ODS HTML path=odsout body="&name..htm" (title="SAS needle plot - &type pollen") style=minimal; goptions htitle=14pt htext=9pt ftitle="albany amt/bold" ftext="albany amt"; axis1 label=(font="albany amt/bold" "Count") major=none minor=none offset=(0,0); axis2 label=none order=('01jan1999'd to '01jan2012'd by year) minor=(number=11) offset=(0,0); symbol1 value=none interpol=needle color=red; title1 ls=1.0 j=l move=(+10,+0) "Pollen Count - &type (Raleigh, NC)"; proc gplot data=here.raleigh_pollen; format &type comma10.0; format date date9.; plot &type*date / noframe vaxis=axis1 haxis=axis2 autohref chref=graydd autovref cvref=graydd des='' name="&name"; run; quit; ODS HTML CLOSE; ODS LISTING;