Previous Topic: NE (Locate Text)Next Topic: M (Move)


PR (Locate Previous)

Summary

The following table summarizes the LOCATE PREVIOUS command.

Format

Action

Result

PR /string/

Enter the string of characters you want to locate. Use any special characters (/) to delimit the search string.

Searches backward, displaying the first occurrence of the string it finds.

Description

Use the PR command to locate character strings backward. You can search forward using the NE (next) command described on a previous page.

Action

To search for character strings, issue the command and define the string. You issue the command in the line number column and specify the string in the actual text entry area of the editor panel. Type the search string over existing text. CA Dataquery does not delete the text you type over. The string size limit is 32 characters. Use special characters to delimit the search string. Any special character placed in position 1 (column 1) or the query text line where PR appears in the line number column is interpreted as the string delimiter. For example some special characters are:

? @ # % /

To repeat the search, reenter the command in the line number column. You do not need to reenter the search text.

Example—Locate Text Backward

=>--------------------------------------------------------------------------DQD10 DATAQUERY: EDITOR ----------------------------------------------------------------------------- NAME: SAMPLE TYPE: QUERY STATUS: PRIVATE DESCRIPTION: LOCATE QUERY TEXT ....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+. PR /ITM-ID/ 15 (DISCOUNT-COST) .. =========================== B O T T O M ================================== ----------------------------------------------------------------------------- <PF1> HELP <PF2> RETURN <PF3> EXECUTE <PF4> SAVE <PF5> DIALOG DEF <PF6> DELETE <PF7> BACKWARD <PF8> FORWARD <PF9> UPDATE <PF10> VALIDATE <PF11> RIGHT/LEFT <PF12> CREATE MODE

Result

=> ------------------------------------------------------------------------DQD10 DATAQUERY: EDITOR ----------------------------------------------------------------------------- NAME: SAMPLE TYPE: QUERY STATUS: PRIVATE DESCRIPTION: LOCATE QUERY TEXT ....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+. 10 FROM CAI-SLSHST-REC ITM-ID 11 SHIP-QTY 12 UNIT-PRICE 13 (NET-COST) 14 DISCOUNT 15 (DISCOUNT-COST) .. =========================== B O T T O M ================================== ----------------------------------------------------------------------------- <PF1> HELP <PF2> RETURN <PF3> EXECUTE <PF4> SAVE <PF5> DIALOG DEF <PF6> DELETE <PF7> BACKWARD <PF8> FORWARD <PF9> UPDATE <PF10> VALIDATE <PF11> RIGHT/LEFT <PF12> CREATE MODE