| 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 Main SAS Window
The following are the primary
components of the main SAS window:
-
menu bar
-
presents the menus available for the active SAS application window. As you switch between application windows, the menu bar changes. Similarly, the pop-up menus that
appear when you click on the right mouse button inside an application window are dependent on that window.
-
command bar
-
provides a way to quickly enter any SAS command. The command bar retains a list of the commands that you enter. To repeat a command that you entered previously,
select the command from the drop-down list and click on the check-mark button or press Enter. To switch the keyboard focus to the command bar, press F11 (the function key defined as COMMAND
BAR).
-
toolbar
-
provides quick access to the commands you perform most often. The toolbar is completely configurable and can contain up to 30 tools. You can associate different sets
of tools with different SAS application windows. When you create a tool, you specify the tool icon, the commands associated with the tool, help text displayed on the status line, and the ToolTip. The
tool browser provides hundreds of images that you can use to represent your commands on the toolbar.
-
windowing environment
-
contains a workspace to open windows within the main SAS window. Certain windows can dock to left side of the main SAS window when Docking View is enabled from the
Preferences dialog box. Windows that can not dock to the main SAS window open to the right of the docking area. For more information about using dockable windows, see
Using the Docking View.
-
window bar
-
is located at the bottom of the main SAS window and provides easy access to any window within the main SAS window. When a window opens, a button is placed in the
window bar representing that window. Whenever you want access to a window, click on the button for that window. That window then becomes the active window. You can also load a file into the
application by dragging a file to a window bar button to make the window active and then continue dragging the file into the window. The window
bar can be enabled and disabled from the Preferences dialog box.
-
status line
-
contains a message area and the current folder for the SAS System. The message area displays help text for menus and tools, as well as messages that are specific to
SAS application windows. The current folder area displays the name of the current working folder. To change the current folder, double-click on the current folder area. For more information about
changing the current folder, see Changing the SAS Working Folder. The status line
can be enabled and disabled from the Preferences dialog box.
You can access SAS commands, tools, and options by selecting them from the menus at the top of the main SAS window or by using the pop-up menus within application
windows. The menus display options available to the active window. To access a pop-up
menu for a particular window, click on the right mouse button anywhere within the window. The pop-up menu that appears contains the menu items available for that particular
window.
Some SAS windows (such as the Explorer window) can contain objects that have their own pop-up menus when you right-click on an object. In these windows, the pop-up
menu is specific to the selected object.
Version 7 of the SAS System for Windows makes it easier for you to access files using the docking view. When Docking View is enabled, certain windows are docked
to the left side of the main SAS window. When you double click on an object in a docked window, a window containing the contents of the object opens in the right side of the main SAS
window.
Each docked window has a tab at the bottom of the window for easy access to the window. When the number of dockable windows is large enough, the SAS System displays a
left
and right arrow for you to be able to traverse through the docked windows.
Docked windows can not be individually moved or resized. To enlarge or contract the amount of
the main SAS window used for docked windows, place the cursor over the split bar between the docked windows 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 docked window area.
If you prefer to work with undocked windows, you can disable Docking View in the
Preferences dialog box, or undock windows individually from the pop-up menu or from the Windows menu.
To undock windows individually:
-
click the right mouse button on the tab of the docked window
-
select Docked from the pop-up
menu
Alternately, you can click on the tab of the window you want to undock and select Docked from the Windows
menu.
To dock an individual window, click in the window to make it the active window and then select Docked from the
Windows menu. For more information on docking or undocking all windows, see View Preferences.
The window bar is a reserved space at the bottom of the main SAS window used to display a button for each opened window within the SAS System. You then have immediate access to any
opened window. When you click on a button in the window bar, that window becomes the active window and is displayed on top of all other windows.
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. For more information enabling ScreenTips, see
View Preferences.
An easy way to load a file into an application that accepts file input, such as the Program
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.
The status line at the bottom of the main SAS
window can be of great help as you learn your way around the SAS System interface. This area displays a short description for various parts of the main SAS window, including the currently selected
pull-down menu, menu item,
toolbar icon, command bar and status bar.
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 status line displays a short description of each
item.
To learn about other areas of the main SAS window, place the mouse pointer over an area. If help is available and enabled, a ScreenTip appears near the cursor. You
enable ScreenTips using the Preferences dialog box and the Customize Tools dialog box. Use the Customize Tools dialog box to enable or disable toolbar and command bar ScreenTips. For more information
on the Preferences dialog box, see Setting Session Preferences. for information on the Customize Tools
dialog box, see Customizing the Toolbar.
If you customize the commands available from the toolbar, you can also specify
the descriptions (Tip Text and Help Text) that appear in the ToolTip and the status bar. To learn more about changing the toolbar, see
Customizing the Toolbar.
You can open and save to 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.
To open a file from the Program Editor:
-
With the Program Editor window active, either click on the Open toolbar
button (the opened file folder), enter `dlgopen' in the command bar, or select File and click Open. SAS displays the Open dialog
box.
-
Use the Open dialog box to select the file you want to include. By default, SAS looks for files with the .SAS file extension (which contain SAS code, by
convention). However, you can change this by adjusting the Files of type field. (If you change the selected file type, SAS will remember that selection and present it as the
default the next time that you open a file for that window during the SAS session.)
-
If the file you are including contains SAS code that you want to submit,
check the Submit box before clicking [OK].
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. ![[cautend]](../common/images/cautend.gif)
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. ![[cautend]](../common/images/cautend.gif)
To save the contents of the active window to a file:
-
Either click on the Save
toolbar button (the diskette) or select the File pull-down menu and select Save. If you have previously saved the contents of this window to a
file (and the filename is part of the window title), SAS simply saves the window to the file you specified previously. If you have not saved the document during this session (and the window title bar
displays the name "Untitled"), then SAS displays the
Save As dialog box.
If you have previously saved the editor contents but now want to save it to a different file, select Save As instead of
Save in the File pull-down menu.
- CAUTION:
- Always use Save As when you want to save the contents of the editor to a new
file.
If you open a text file in the editor window, whether you use the Open dialog box or the INCLUDE command, the editor title bar displays the name of the file that
you opened. When you select the File pull-down menu and then the Save item, SAS overwrites or appends the file of that name with the current
contents of the editor.
![[cautend]](../common/images/cautend.gif)
-
Select or name the file in which to store the window contents. Optionally, you can select a file type from the
Save file as type list. SAS saves most file types as plain text and assigns different file extensions based on the type you select; the exception is the RTF file type, which
SAS saves in rich text format (RTF).
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:
If the contents of the window have not been saved, SAS prompts you to save them before it clears the
window.
To display the key definitions that are active for the SAS
session (that is, the DMKEYS entry in your SASUSER.PROFILE catalog), either type KEYS in the command box or select
| Tools |
![[arrow]](../common/images/arrow.gif) |
Options |
![[arrow]](../common/images/arrow.gif) |
Keys |
These key definitions apply to the basic SAS windows, such as Program Editor, Output, and Log
windows. Default Key Definitions under Windows
contains a list of the default key definitions.
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.)
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.