Previous Page | Next Page

Working in the SAS Windowing Environment

Selecting (Marking) Text in UNIX Environments


Difference between Marking Character Strings and Blocks

When you select text in a SAS window, you can select character strings or blocks. Character strings include the text in successive columns of one or more rows, as shown in the following display. Blocks are rectangular blocks that include the same columns from successive rows, as shown in Blocks That Are Marked.

Strings That Are Marked

[Program Editor Window with Strings That Are Marked]

Blocks That Are Marked

[Program Editor Window with Blocks That Are Marked]


Techniques for Selecting Text


Select Text with the Mouse

To select your text, complete the following steps:

  1. Position the cursor at the beginning of the text that you want to mark.

  2. Press and hold the left mouse button. If you want to select a block instead of a string, press and hold the CTRL key before you press the left mouse button.

  3. Drag the mouse pointer over the text that you want to mark.

  4. Press and hold down the ALT key (or EXTEND char key or META key, depending on your keyboard) while you release the mouse button. The marks that are generated by the mouse are called drag marks.

To extend an area of marked text, press and hold the SHIFT key, and use the left mouse button and the ALT key (and the CTRL key, if you are marking a block) to mark the new ending position. To unmark the selected text, press the mouse button anywhere in the window.


Select Text with the MARK Command

You can issue the MARK command from the command line, or you can assign it to a function key. With the MARK command, you can select more than one area of text in the same window at the same time. For more information about the MARK command, see the online SAS Help and Documentation.

To select your text, complete the following steps:

  1. Position the cursor at the beginning of the text that you want to mark.

  2. Issue the MARK command. If you want to select a block instead of a string, add the BLOCK argument to the MARK command.

  3. Move the cursor to the end of the text that you want to mark.

  4. Issue the MARK command a second time.

To unmark the selected text, issue the UNMARK command.


Select Text by Using the Edit Menu

To select your text using the Edit menu, complete the following steps:

  1. Position the cursor at the beginning of the text that you want to mark.

  2. Select Edit [arrow] Select.

  3. Position the cursor at the end of the text that you want to mark.

  4. Press the left mouse button.

To unmark the selected text, select Edit [arrow] Deselect.

Previous Page | Next Page | Top of Page