48 Using IBM Application Development Tools for z/OS and OS/390
2.1.13 Multiple Find
The FIND utility command (option 3.6) allows you to specify more than one string to search
for, optionally with a limit on the range of columns to be searched. The command can be
entered as shown in Example 2-19.
Example 2-19 FIND utility command
FINd string1 AND string2 OR string3 col1 col2
F string1 & string2 | string3 col1 col2
This is a free form FIND. If you do not specify a column range, the total length of the record is
used. There are some limitations to this utility; use REXX procedures for more complex
processing such as:
Search for a string in one field AND/OR another string in another field.
Combine FIND and CHANGE in the same command.
When you request the online FIND, you get the results in the SRCHFOR.LIST file specified
on the panel, as shown in Example 2-20.
Example 2-20 Result of combined FIND ‘01’ | ‘03’ 1 2
********************************* Top of Data *********************************
IBM File Manager for z/OS and OS/390
Record-# Find/Change Listing DSN:DAVINR1.DEMOS.TESTFILE
FMNCDATA ---------- STRING(S) FOUND ----------
1 01Grant Sutherland ...-.Í..........................................
2 01Andrew Astle .M...Í..........................................
3 01Graham Purdie .h.;.Ç..........................................
4 01Bill Soper .....Ç..........................................
5 01Tyrone Dalais .0...-..........................................
6 01Rod Turner .Ö.À............................................
7 01Clive Nealon .u.À............................................
8 01Jim Alexander .ì.>............................................
9 01Silvano Prez .....-..........................................
10 01Don Pharoah .....Ä..........................................
11 01John Levrington .è...Å..........................................
12 01Liz Rushton .è...Ã..........................................
13 01Bob McCormack .µ...Î..........................................
14 01Keith Stewart .....ø..........................................
15 01John Nicholls .è...Ñ..........................................
16 01Peter van Dyke .µ...e..........................................
17 01Anna Waghorn .d...-..........................................
18 01Mike Moriarty .....d..........................................
19 01Merrill Bani ...-.ì..........................................
20 01Angus King ...-............................................
------- Find/Change summary section ------------------
Records found: 20 Records processed: 40
Members w/recs: 1 Members wo/recs: 0
Search cols: 1:2 Longest line: 80
Note: This does not apply to the FIND command in Edit/Browse mode.
Restriction: You do not have the option of specifying a template and field reference
instead of the starting and ending columns.
Get Using IBM Application Development Tools for z/OS and OS/390 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.