SAS Institute. The Power to Know

SAS(R) 9.2 Companion for OpenVMS on HP Integrity Servers

space
Previous Page | Next Page

Working in the SAS Windowing Environment

Replacing Character Strings under OpenVMS


Introduction to the Replace Dialog Box

The Replace dialog box enables you to search for and replace character strings in any active SAS Text Editor windows such at the Program Editor, the SCL editor, or the NOTEPAD.


Opening the Replace Dialog Box

To replace one character string with another, open the Replace dialog box by completing one of the following steps:

  • Issue the DLGREPLACE command in the command window.

  • Select Edit [arrow] Replace in the active window.

When the Replace dialog box opens, the name of the active window follows the name of the dialog box (for example, Replace...:Program Editor).

Replace Dialog Box

[Replace Dialog Box]


Description of Options in the Replace Dialog Box

To find a character string, type the string in the Find field, and select Find. To change a character string, type the string in the Find field, type its replacement in the Replace field, and select Replace. To change every occurrence of the string to its replacement string, select Replace All.

You can tailor your find or replace operation by using the following buttons:

Match Case

tells the search to match the uppercase and lowercase characters exactly as you typed them.

Match Word

searches for the specified string delimited by spaces, end-of-line characters, or end-of-file characters.

Previous

searches for the specified string from the current cursor position toward the beginning of the file.

Next

searches for the specified string from the current cursor position toward the end of the file.

space
Previous Page | Next Page | Top of Page