Chapter Contents

Previous

Next
SAS Companion for UNIX Environments

Searching For and Replacing Text Strings

The Find and Replace dialog boxes (Replace Dialog Box) allow you to search for and replace strings in SAS text editor windows such as the Program Editor, the SCL editor, or the Notepad. To search for a string, open the Find dialog box by issuing the DLGFIND command or by selecting

Edit
[arrow]
Find...
To replace one text string with another, open the Replace dialog box by issuing the DLGREPLACE command or by selecting

Edit
[arrow]
Replace...
The Find dialog box works like the Replace dialog box, except it does not have the Replace field or the [Replace] and [Replace All] buttons.

Replace Dialog Box

[IMAGE]

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 using the following buttons:

Match Case
tells the search to match the uppercase and lowercase characters exactly as you entered them.

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

Previous
searches from the current cursor position toward the beginning of the file.

Next
searches from the current cursor position toward the end of the file.


Chapter Contents

Previous

Next

Top of Page

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