Robert Penridge
Robert Penridge

Reputation: 8513

Programming a shortcut key to clear the results window in SAS

I'm trying to setup a shortcut key to clear any results from the results window in the base SAS IDE.

I know F9 brings up the shortcut window to assign keys. From the ?command box? I can type in dm results to activate the results window, and then clear to clear it. But when I try and combine these as my keyboard shortcut like so:

dm results; clear;

... nothing happens. What do I need to do to get this working?

Upvotes: 2

Views: 2249

Answers (2)

Clovis
Clovis

Reputation: 193

You almost have it. You need to write:

DM ODSRESULTS "CLEAR;";

FYI:

DM LOG "CLEAR;";

Will clear your log as well.

Upvotes: 0

Yoh
Yoh

Reputation: 688

I was writing a longer answer, but seems everything I wanted to say is gathered here:

http://support.sas.com/kb/4/159.html

For your specific question to clear the results by key shortcut: odsresults; clear;

Upvotes: 2

Related Questions