BookmarkSubscribeRSS Feed
RC5
Calcite | Level 5 RC5
Calcite | Level 5

I'm using SAS 9.4 Display Manager on Windows 11.

Until recently, typing CLEAR on the Log or Output command line immediately cleared the window without prompting me to save its contents.

Beginning yesterday, SAS started displaying the following confirmation:

"Do you want to save the text in the Log window?"

The same behavior occurs in the Output and Program Editor windows, including when selecting Edit → Clear All.

Clicking "No" clears the window normally.

I've checked Tools → Options → Preferences and SAS System Options, but haven't found a setting that controls this behavior. The issue persists after restarting SAS.

Does anyone know how to disable this confirmation and restore the previous behavior without resetting my SAS profile?

1 REPLY 1
ballardw
Super User

Don't know if this will help as not running Windows 11. I would try opening th e KEYS window, should be the F9 key with the default Display Manager settings, and assign the Clear command to one of the keys. The Keys window doesn't, or at least mine never did, accept pasted text. So you have to type the complete set of commands. The semicolon separates commands. 

The full command should look like:

log; clear; 

or

output;clear;

or for ODS results

ods results; select all;clear;

This normally behaves as if the command is typed into a command line so assign the window first so the key is clearing what you expect. If nothing else one key is quicker than typing "clear".

I used to have a key set to:

ods results;select all;clear;log;clear;wpgm;

to clear both windows and return to the enhanced editor.

 

Another Keys command line I found useful is:

vt _last_ openmode=edit;colnames;

Which opens the last created data set in the View Table window. The edit option for openmode makes it possible to things such as change variable properties, values or column order or hide columns. The colnames shows the names of the variables as the colheading. 

 

 

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 82 views
  • 0 likes
  • 2 in conversation