You might want to show the code at least where you attempt to control the image type generated.
I would typically expect to see something like <dummy code wont' execute>
ods listing;
ods graphics on / outputfmt=EMF /* other graphics options like maybe Imagename='mygraph'*/
<code to generate graphs>
/* possibly an ods graphics /reset; or change to different image type for other output destinations*/
ods listing close;
Note that you really do have to have ods destination open that will allow the type of file you want.
My SAS 9.4.7 shows the EMF is only allowed for Listing, Excel, Powerpoint adn RTF.
Your problem with the macro is extremely likely to be related to timing of different options but since you didn't show the macro code we can't really comment on it. One suspects issues about when a destination is opened/closed in relation to the graph generating code.
... View more