Data visualization with SAS programming

how to create physical graphic file but do not want to display on screen

Reply
SAS Employee MrE
SAS Employee
Posts: 11

how to create physical graphic file but do not want to display on screen

I want to create physical file
but do not want to display that graph on screen.

Note that when I use "goptions nodisplay", The physical files did not created.


I used example code below;

ods listing;
filename outfiles "C:\Program Files\SAS\SAS 9.1\Image\graph1.GIF";
goptions reset =all gsfname=outfiles device=gif gsfmode=replace;

goptions display;

proc greplay; run;
Super Contributor
Posts: 273

Re: how to create physical graphic file but do not want to display on screen

Here is a way to a solution for you

[pre]
proc gslide;
title "test";
run;
quit;
ods listing;
filename outfiles "d:\temp\image1.GIF";
goptions reset =all gsfname=outfiles device=gif gsfmode=replace;
ods noresults;
proc greplay nofs igout=work.gseg;
replay _first_;
run;
quit;
ods results;

[/pre]

indeed goptions nodisplay did not produce a file
but for the replay step you may forbid the output on the screen

Andre
SAS Employee MrE
SAS Employee
Posts: 11

Re: how to create physical graphic file but do not want to display on screen

Thanks, Andre I'll try what you suggest. : )
Ask a Question
Discussion stats
  • 2 replies
  • 221 views
  • 0 likes
  • 2 in conversation