The SAS display manager is a comamnd line interface to the SAS system, which remains in Base SAS as a legacy facility.
However the online documentation on how to use this facility is sparse at best, and google searches are less than fruitful.
A common DM command would be: CLEAR LOG; CLEAR OUTPUT; WPGM;
My question is - What other DM commands are out there?
A couple of shortcuts I use (in addition to the
cle <windowname>
fsv <datasetname>
(opens a dataset using FS View)vt <datasetmae>
(opens a dataset using View Table)subtop <N# of line>
(submits the top N lines from the program editor)One other useful feature.. Use the display manager menus to do the task that you want the command for. Then switch the commandline on and issue the
?
command or (if necessary) a series of?
commands. This will retrieve back to the commandline the last command executed (even if that command was executed by the Display Manager menu system).By looking at the previous commands executed, you can find a number of relatively obscure commands. I believe that EVERY display manager menu has its commandline equivalent which you can then use.
Unfortunately, it doesn't seem like SAS has its commands listed in a single place online. All commands are documented within SAS, however.
1. Enter
help
into the command line2. Search for the exact phrase "Overview of SAS Commands"
3. Select the link "SAS Commands by Category"
This brings up the following list:
All of the commands mentioned in by other people are present in this list. The category which pertains to your question specifically is "Windowing Management."
4. Scroll down to the "Windowing Management" category
Some commands which open other useful windows include:
• assist - menu driven version of SAS
• dir - shows data sets in a library
• var - shows variables in a data set
• notepad - simple text window
• options - view and change system options
• filename - view current filename assignments
• help - interactive help system
• libname - view current libname assignments
Some useful display manager commands which work in any window include:
• clear - clear the contents of the window
• end - close the window
• endsas - end the sas session
• file "filename" - save contents of the window to filename
• prevcmd - recall previous display manager command
(extract from http://www.stat.berkeley.edu/classes/s100/sas.pdf )
I set CTRL+F3 to 'rsubmit' - saves typing rsubmit / endrsubmit when developing code to go into remote production.
I like to close all view tables at once:
Some examples I have found useful (in open code format) are: