Searching for and Replacing Text Strings in UNIX Environments

What Are the Find and Replace Dialog Boxes?

The Find and Replace dialog boxes enable you to search for and replace strings in SAS text editor windows such as the Program Editor, the SCL editor, or NOTEPAD.

Opening the Find Dialog Box

To search for a string, open the Find dialog box by issuing the DLGFIND command or by selecting Edit then selectFind.

Description of the Find Dialog Box Options

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.
For a description of the options in the Find dialog box, see Description of the Replace Dialog Box Options .

Opening the Replace Dialog Box

To replace one text string with another, open the Replace dialog box by issuing the DLGREPLACE command or by selecting Editthen selectReplace.
Replace Dialog Box
Replace Dialog Box

Description of the Replace Dialog Box Options

To find a character string, enter the string in the Find field, and click Find. To change a character string, enter the string in the Find field, enter its replacement in the Replace field, and click Replace. To change every occurrence of the string to its replacement string, click 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.