BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
rfathzadeh
Calcite | Level 5
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
1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ
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

2 REPLIES 2
deleted_user
Not applicable
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
Cynthia_sas
SAS Super FREQ
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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

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