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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 3608 views
  • 1 like
  • 3 in conversation