Previous Topic: Edit CommandsNext Topic: Specify the Value


Locate Data

Find/Rfind

Scans the test stream for a character string. You can specify these commands in all three formats.

Note: Although the Find and Rfind commands can be entered in Display format, the value specified in the Scan parameter applies to the screen in Field format. Similarly, if the commands are entered in Field or Hex format, the value specified in the Screen ID parameter applies to the screen in Display format.

The Find command searches once for the specified value; the Rfind command repeats the previous Find command. Use the Rfind command to locate additional occurrences of the character string without respecifying it.

When you enter the Find command, CA Verify for CICS inserts the Find parameters on the menu as illustrated next.

CCC.ORDERAPP.002 -------- EDIT: FIELD FORMAT ------------------------13:50:02 ENTER COMMAND ===> E4 ROW COLUMN VALUE ===> ===> SCREEN ID ===> ===> ===> SCAN ===> RUN OPTION: 7 RECORD NUMBER: 2 TYPE: OUTPUT TRAN: XCCC DATA LENGTH: 266 OPERATION: ERASE/WRITE DATE: 06/29/1998 SCREEN SIZE: 24 BY 80 RESPONSE: 00:00:00.003 TIME: 13:39:44.336 TERMINAL: A55TG001 WCC: C2: NL/EM/CR PRINT CNTL, KEYBOARD RESTORE ORDER ROW COL ATTR LENGTH ----+----|----+----|----+----|----+----|----+--- SBA 7 16 00000 IC 00000 FLD 1 1 PSH 00004 DATE SF PS 00008 06/29/98 FLD 1 29 PSH 00023 CAROL'S COOKIES COMPANY FLD 1 63 PSH 00007 RELEASE SF PSM 00003 6.2 FLD 2 1 PSH 00004 TIME SF PS 00008 13:39:44 FLD 2 36 PSH 00009 MAIN MENU FLD 7 1 PSH 00013 ENTER OPTION: SF UM 00000

The Find command has two parameters: Screen ID and Scan. You can specify values for one or both parameters. If you specify both values, both must be satisfied.

Screen ID

The value specified for this parameter applies to the screen as it appears in Display format. The Row and Column sub-parameters must be specified. CA Verify for CICS will search for the value only in that row and column.

Scan

The value specified for this parameter applies to the screen in Field format. The Row and Column sub-parameters are optional. Specify a row without a column to limit the search to a single row; specify a column without a row to limit the search to a single column. Omit both row and column to search the entire screen.

Although the Find and Rfind commands can be entered in Display format, the value specified in the Scan parameter applies to the screen in Field format.

Note: To find orders, specify the Find and Rfind commands in Hex format, omitting the Scan parameter row and column.

If CA Verify for CICS finds the string, it displays the record in which it was found; otherwise, the current record is redisplayed along with a message.