Forecasting using SAS Forecast Server, SAS/ETS, and more

No way to clear the "Graph" window in SAS?

Accepted Solution Solved
Reply
N/A
Posts: 1
Accepted Solution

No way to clear the "Graph" window in SAS?

Hi,

It's a little bit annoying that there's no (or at least I couldn't find any) way to clear the graph window in sas 9. So I have to close the software again and again. It become cumbersome when I open a dosen of projects and run them. Fortunately there is such an option in the output window (by right clicking). Is there any way to get around this?!

thanks

Accepted Solutions
Solution
‎08-09-2017 02:29 PM
SAS Super FREQ
Posts: 8,866

Re: No way to clear the "Graph" window in SAS?

Posted in reply to rfathzadeh
In addition to David's suggestions, if what you want to do is delete entries in the internal graph catalog so your graph entry numbers don't keep incrementing, you could precede your SAS/Graph code with:
[pre]

proc greplay igout = work.gseg nofs;
delete _all_;
run;
quit;

[/pre]

Which will delete ALL the previous entries. If you do not want to delete ALL the entries, then consult the SAS/Graph documentation for information on how to manage the graph catalog entries.

cynthia

View solution in original post


All Replies
N/A
Posts: 0

Re: No way to clear the "Graph" window in SAS?

Posted in reply to rfathzadeh
Are you talking about the graph window that displays the results of your last graphic procedure?

Look first at the command syntax for the product, specifically in the Factual Material under "Running SAS/Graph programs" / "Running in batch mode". Correctly set, this will create your graphs, storing them to a SAS/Graph catalogue you specify, but suppress their being displayed on the SAS session.

If all you want to do is clear the window each time the graph is displayed, then you can use a display manager command to close the Graph window. The window is called "Graph", so coding

dm "graph; end"

will switch focus to the Graph window and close it before returning focus to the previous (usually wpgm) window.

Kind regards

David
Solution
‎08-09-2017 02:29 PM
SAS Super FREQ
Posts: 8,866

Re: No way to clear the "Graph" window in SAS?

Posted in reply to rfathzadeh
In addition to David's suggestions, if what you want to do is delete entries in the internal graph catalog so your graph entry numbers don't keep incrementing, you could precede your SAS/Graph code with:
[pre]

proc greplay igout = work.gseg nofs;
delete _all_;
run;
quit;

[/pre]

Which will delete ALL the previous entries. If you do not want to delete ALL the entries, then consult the SAS/Graph documentation for information on how to manage the graph catalog entries.

cynthia
🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 1692 views
  • 1 like
  • 3 in conversation