Code Before | Code After |
---|---|
filename grafout 'c:\temp\sastest.gif'; goptions reset=all device=gif gsfname=grafout gsfmode=replace; proc gtestit; run; |
ods listing; filename grafout 'c:\temp\sastest.gif'; goptions reset=all device=gif gsfname=grafout gsfmode=replace; proc gtestit; run; |
Logs Before | Logs After |
NOTE: 125 records written to C:\Users\anhall\AppData\Local\Temp\SAS Temporary Files\_TD8252_L73453_\gtestit1.gif ... NOTE: PROCEDURE GTESTIT used (Total process time): |
NOTE: 125 records written to C:\Users\anhall\AppData\Local\Temp\SAS Temporary Files\_TD8252_L73453_\gtestit4.gif NOTE: 125 records written to c:\temp\sastest.gif ... NOTE: PROCEDURE GTESTIT used (Total process time): |
When only using ODS LISTING; the same graphics output is still written out to the temporary location. This is because the HTML destination is still open. If I added the statement ODS HTML CLOSE; along with the ODS LISTING; then no files would be forwarded into the temporary location.
3 Comments
Hi Angela,
Thank you for this usefull tips.
I am having trouble when I have more then one file that I want to save to specific folder.
For example, In one SAS program I have two SAS PROC GPLOT and I am saving two different output graphs to specific folder using the GSFNAME GOPTIONS. I have closed HTML and opened ODS LISTING.
Unfortunetly, I can only save the first graph to the specif folder but the second one still gets sent to temp folder.
I am using SAS EG 4.3. Any help would be appericiated on this.
Thank You
Tina,
You might need to check out the proc gplot statement option name= to ensure that the first gplot result isnt being overwritten by the 2nd.
http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#a003283227.htm
~
Angela
Thanks for the valuable tip. In EG, it was difficult to generate .gif files at a specific location.