This code you suggested created files for all observations with the file names to the right destination but the emf files were blank. Here is the proc template I am trying to generate an emf for ... %Macro Graph; proc template; define statgraph district; begingraph / datacolors=(white CXEBDDED CXEBDDED CXEBDDED CXEBDDED CXEBDDED CXEBDDED CXEBDDED) ; layout overlay / walldisplay=(fill) xaxisopts=(display=( line tickvalues) DISCRETEOPTS=(TICKVALUEFITPOLICY=split TICKVALUESPLITJUSTIFY=center) labelattrs=(family='GraphLabelText' size=10pt)) yaxisopts=( offsetmin=0 linearopts=(viewmin=0 viewmax=&vmax tickvaluelist=(0 &Mid &Max))); barchartparm x=district y=percent / group=district groupdisplay=cluster errorupper=uppct errorlower=lowpct ERRORBARATTRS=(color=black) OUTLINEATTRS=(color=black); scatterplot y=dataloc x=district / markercharacter=percent MARKERCHARACTERATTRS=(size=10pt FAMILY='GraphValueText'); endlayout; endgraph; end; run; proc sgrender data=district template=district ; format district district.; run; %Mend Graph; ods _all_ close; ods listing gpath="d:\data"; ods graphics on / reset=all width=6.0in height=3.5in noborder IMAGEFMT=EMFdual noscale imagename="&var..emf"; /*Output(Var,Max,vmax,Mid,Lev)*/ %Output (Z_GENHLT, 50,50, 25, 2, ); %Output (Z_HCCOVR, 50,50, 25, 2, ) ; ods graphics off;
... View more