You can use the OUTPUTFMT on the ODS Graphics statement.
You can also check the Graphing forum for examples on how to implement this. It also depends on your ODS destination, WMF/EPS are only supported for several destinations. I’ll move this question to the graphing forum.