Chapter Contents

Previous

Next
SAS Companion for the OpenVMS Operating Environment

Replacing Character Strings

The Replace dialog box allow 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.

To replace one character string with another, open the Replace dialog box (Replace Dialog Box), by issuing the DLGREPLACE command in the command window, or selecting Replace from the Edit menu 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

[IMAGE]

The following is an explanation of the settings:

Find: field
allows you to type in the character string that you want to find.

Replace: field
allows you to type in the character string that you want to use as the replacement.

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.

To find a character string, type the string in the Find: field, then click on [Find].

To replace a character string, type the string in the Find: field and type its replacement in the Replace: field. Click on [Replace]. To change every occurrence of the string to its replacement string, click on [Replace All].

Click on [Cancel] to cancel your choices and close the Replace dialog box.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.