I'm a bit confuse on how to modify the name of a graphics image file.
It seems like the only thing to do is to enable the IMAGENAME= option in the ods graphics statement, but it doesn't work well for me..
(ref:
http://support.sas.com/rnd/app/da/stat/odsgraph/faq.html)
Would that be the problem that I use ODS HTML at the same time?
The following is my code:
ods html path = "C:\QA2"
gpath = "C:\QA2\gif" (url="gif/")
file = "test.htm";
ods graphics on / imagename = "MyName"
imagefmt = png;
proc gplot;
...
plot statement;
...
quit;
ods graphics off;
ods html close;
With this code, I was able to save the output in HTML format in C:\QA2 as well as graphics file (named gplot.png) in C:\QA2\gif. I was hoping the IMAGENAME option would change the name to MyName.png and save it at C:\QA2\gif. Am I missing something?
Thanks!!