SAS Studio (3.x and 4.x) has two types of tabs. The main tabs are those tabs that have the dark blue bar on the top. Programs and data sets, for example, are opened in main tabs. Secondary tabs have the blue bar under the tab and are usually found within a program. You can rearrange both these tab types by dragging them to valid drop zones.
The main tabs can have standard, horizontal, or a vertical layout. A program’s secondary tabs have a few more layout options. It all depends on how you like to work and your monitor size.
Rearranging the main tabs, vertically
Open two files. This example will use two data sets from the SASHELP library.
Click on a file’s tab and start dragging it. You’ll notice that a red X appears, indicating an invalid drop-zone.
Continue (slowly) dragging the tab to the far right of SAS Studio’s screen. Keep dragging until you see the red X turn to green and a gray drop zone appears. You’ve reached a valid drop-zone.
Release the mouse and the dragged tab will now display on the right side – displaying both tabs at the same time.
Tip 1: Double-click a main tab to hide and show the panes on the left to give you more real estate to work with. Alt+11 (Windows) or Fn+Shift+F11 (MAC) also performs the same function.
Once you create a vertical or horizontal layout, you can add tabs to either grouping. For example, this layout shows four tabs in a vertical layout, two tabs in each grouping.
Rearranging the main tabs, horizontally
You can create a horizontal layout by dragging a tab to the bottom of the SAS Studio window. If you already have a vertical layout you cannot have a horizontal layout at the same time. You need to first restore the tab layout to the standard layout and then you can drag tabs to have a horizontal layout.
Example of a horizontal layout:
Rearranging a Program’s secondary tabs
You can achieve more layouts with the program’s tabs than with the main tabs. This exercise will show you how to layout the program tab so that you can see the code and the log at the same time.
Open a program file. There are many ways to do this.
Right-click an existing tab and click New SAS Program
F4 (Windows) or Fn+F4 (MAC)
New > SAS Program
By default, you see three secondary tabs – Code, Log, Results. The Output Data tab only displays when your code generates data.
Click and start dragging the Log tab.
Continue (slowly) dragging the Log tab to the bottom of the Program tab.
When you see a valid drop zone, release the mouse. The Log tab is now displayed below the Code tab.
While not as flexible as a desktop application, SAS Studio does provide ways to see multiple tabs side-by-side.
Tip 3: Alt+2 (Windows) or Option+2 (MAC) will quickly move you between the Program’s secondary tabs.
An pdf version is attached in case you want to a hard copy or share it.
... View more