I am running SAS 9.4 on Windows.
If I submit
/*ods listing close;*/
filename grafout "C:\output\sastest.png";
goptions reset=goptions device=png gsfname=grafout;
proc gchart data=sashelp.class;
where sex="F";
vbar age / sumvar=weight type=mean subgroup=age
nolegend discrete;
run;
quit;
the file sastest.png
is exported to the C:\output
folder. However, if I place an ods listing close;
statement at the top of the code, the graph is no longer exported.
Apparently, the listing destination is more than
an ODS destination that produces traditional SAS output (monospace format).
It is even more confusing because listing is turned off by default:
Beginning with SAS 9.3, by default, in the Windowing environment with the Windows and UNIX operating systems, the LISTING destination is closed and the HTML destination is open.
Why would the ods listing close;
statement prevent the graph from exporting?