Chapter Contents |
Previous |
Next |
SAS Companion for the Microsoft Windows Environment |
The main SAS window contains all other SAS application windows. The main SAS window is completely configurable, allowing you to use its features in a way that is productive for you. The Main SAS Window shows the main SAS window as it appears when you first start the SAS System. This section briefly describes the features of the window.
The following are the primary components of the main SAS window:
Accessing SAS Commands, Tools, and Options from Menus |
Some SAS windows (such as the Explorer window) along with the main SAS window can contain objects that have their own pop-up menus when you right-click on an object. For example, the command bar, the toolbar and the status line each have a pop-up menu. In these windows, the pop-up menu is specific to the selected object.
Using the Docking View |
The docking view is enabled or disabled
Each docked window has a tab at the bottom of the docking area for easy access to the window. When the number of docked windows is large enough so that you cannot identify the tabs, a left and right arrow are displayed for you to navigate through the docked windows.
Docked windows cannot be individually moved or resized. To enlarge or contract the docking area, place the cursor over the split bar between the docking area and the remaining portion of the main SAS window. Then click and hold down the left mouse button. Move the mouse to the left or right to resize the docking area.
If you prefer to dock or undock individual windows, you can toggle the Docked command using the docked window's pop-up menu (click the right mouse button on the window's tab) or by selecting
Window | Docked |
For more information on docking or undocking all windows, see View Preferences and WDOCKVIEW.
Using the Window Bar |
When you open enough windows so that not all buttons fit in the window bar using the default button size, SAS decreases the button size. If the button size is small enough that you cannot read the button, you can place the mouse cursor over a button and a ScreenTip tells you the window name. You enable ScreenTips using the Preferences dialog box or by entering WSCREENTIPS in the command bar. For more information enabling ScreenTips, see View Preferences and WSCREENTIPS.
An easy way to load a file into an application that accepts file input, such as the Program Editor or the Enhanced Editor, is to drag the file to the application's button on the window bar which makes the application the active window. Then continue dragging the file to the application window. Release the mouse button to load the file into the application. You cannot drag a file onto a button. Dragging a file onto a button causes the window for that button to become the active window.
Each button on the window bar has a menu associated with it. To access the menu, place the cursor over the button and click the right mouse button.
You can enable and disable the window bar either from the Preferences dialog box, the status line and window bar pop-up menus, or by entering WWINDOWBAR in the command bar.
Learning about the Main SAS Window |
If you would like a description of a menu or a menu item, select the menu or menu item, and hold down the mouse button. As the mouse pointer passes over the menu or menu item, a description of the item displays in the message area of the status line. For example, when you select the File pull-down menu, the status line displays "Perform file-related operations." As you drag the mouse to highlight the items under the File menu, the message area displays a short description of each item.
When you place the cursor over a toolbar button, a screen tip displays by the icon and a longer description displays in the message area.
For other parts of the main SAS window, such as the docking area tabs, the window bar buttons, and the status line, by placing the cursor over the item and holding it there for a second, a one or two word screen tip pops up. When you place the cursor over a window bar button, the screen tip contains the window name. This is very useful when you have several windows open and the window buttons are too small to read the window name.
If you customize the commands available from the toolbar, you can also specify the descriptions (Tip Text and Help Text) that appear as screen tip help and a message in the message area. To learn more about changing the toolbar, see Customizing the Toolbar.
To enable or disable command bar or toolbar screen tips, you can use either the Show ScreenTips on toolbars option in the Customize dialog box Toolbars page or enter the TOOLTIP command in the command bar. All other screen tips can be enabled or disabled using the ScreenTip option in the Preferences dialog box View page or by using the WSCREENTIPS command. For more information on enabling and disabling screen tips, see Setting Session Preferences,Customizing the Toolbar, WSCREENTIPS, and TOOLTIPS.
Opening and Saving Files |
You can open and save external files from any text editor window,
such as the Program Editor window. Some SAS windows, such as Log and Output,
do not allow file input; you cannot open files from these windows, but you
can save the window contents to external files. If you would like the default
folder for the Open and Save As dialog boxes to be the current working folder
and not the SASUSER folder, you can start the SAS System using the SASINITIALFOLDER
system option. For more information, see SASINITIALFOLDER.
To open a file from the Program Editor:
Note: If you select Submit , it remains selected each time you use the Open dialog
box to open a file. You must deselect it if you do not want to submit the
contents of the file you want to open.
You can also drag and drop a file into the Program Editor from the Windows Explorer or the My Favorite Folders window. To do this,
Note: The Program Editor window can hold up to 256 characters
on a single line. If you open a file with lines longer than 256 characters
in the Program Editor window, the lines are truncated unless you use the INCLUDE
command with an LRECL= value equal to the number of characters in the longest
line, and you set either the AUTOWRAP or AUTOFLOW command to ON. If you want
to use the Open dialog box to open a file with lines longer than 256 characters,
use the FILENAME statement to set up a fileref with the appropriate options
and then use the fileref, enclosed in double quotes, in the File Name field in the Open dialog box.
To save the contents of the active window to a file:
If you have previously saved the window contents but now want to save it to a different file, select Save As instead of Save in the File pull-down menu or enter the DLGSAVE command.
If you select a file type from the list, SAS remembers that selection and presents it as the default type the next time that you save a new file in that window.
To clear a SAS window of its contents and saved filename (if it has one), do one of the following:
Defining Keys |
Tools | Options | Keys |
Other SAS products have their own key definitions. Use the pull-down menus in the specific product window to access key definitions for specific products.
Although the SAS System lets you define any key listed in the KEYS window, Windows reserves some keys for itself to maintain conformity among Windows applications. These reserved keys are not shown in the KEYS window.
To define or redefine a key within the SAS System, place the cursor in the Definition column across from the key or mouse button you want to define and type the command or commands that you want to associate with that key or button. The definition must be a valid SAS command or sequence of commands. When you specify a sequence of commands, separate the commands with a semi-colon ( ; ). For example, if you want to define the CTRL+H key sequence to maximize a window and recall the last submitted program, specify the following commands in the Definitions column next to CTL H:
zoom; recall
The SAS System does not check the syntax of a command until it is used (that is, when the key is pressed). If you misspell a command or type an incorrect command, you do not discover your error until you use the key and receive an error message that indicates that the command was unrecognized.
Your key definitions are stored in your SAS user profile catalog. SAS creates a profile catalog each time you invoke the SAS System with a different value for the SASUSER option. Changes you make to one profile catalog are not reflected in any other. However, you can use the COPY command from the KEYS window or the CATALOG procedure to copy key definition members to other profile catalogs. (For more information, see the CATALOG procedure in SAS Procedures Guide.)
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.