How to make SAS to open with maximized window?

1k views Asked by At

How to make SAS to open with the main window and the editor window automatically maximized?

2

There are 2 answers

1
John Leveille On BEST ANSWER

One way to do this is to push the command AWSMAXIMIZE at startup. You could place this statement in your autoexec.sas

dm "awsmaximize";

I was also able to do this by editing the start menu entry and adding to the end of the SAS command: -initstmt "dm 'awsmaximize';"

More here: http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#a000115355.htm#win-af-wincmds

1
DomPazz On

Not sure if you can do this automatically at startup, but you can set a hotkey to do it.

Tools -> Options -> Keys

Choose a key and type this into the command:

AWSMAXIMIZE ON; WPGM; ZOOM
  1. "AWSMAXIMIZE ON" is the SAS for Windows command to maximize itself.
  2. "WPGM" is the command to bring focus to the Enhanced Program Manager
  3. "ZOOM" is the command to maximize the in-focus window.