Searching for and Replacing Text Strings in UNIX Environments


What are the Find and Replace Dialog Boxes?

The Find and Replace dialog boxes (Display 2.10 on page 47) enable you to search for and replace strings in SAS text editor windows such as the Program Editor, the SCL editor, or the Notepad.

click to expand
Display 2.10: Replace Dialog Box

Opening the Find Dialog Box

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

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 on the Find Dialog Box, see "Description of the Replace Dialog Box Options" on page 47.

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
Edit Replace

Description of the Replace Dialog Box Options

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.




SAS 9.1 Companion for UNIX Environments
SAS 9.1 Companion For Unix Enivronments
ISBN: 1590472101
EAN: 2147483647
Year: 2004
Pages: 185
Authors: SAS Institute

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net