Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
833s // 862s // ISBSERCH 9s SRCHFOR 10s SRCHFOR TESTME DISP=(,CATLG,DELETE),UNIT=CART,EXPDT=99000, DISP=(,CATLG,DELETE),UNIT=CART,EXPDT=99000, ---------- STRING(S) FOUND ---------- `UNIT=CART' `UNIT=TAPE' ----------- member in use ----------- ------- Find/Change summary section ------------------ Records found: 8 Records processed: 2744 Members w/recs: 5 Members wo/recs: 42 ------- Find/Change statement section ---------------- IF CO(INREC,'UNIT=CART') | , CO(INREC,'UNIT=TAPE') THEN RETURN ELSE RETURN `DROP' Each of the members in which either one of the strings was found is listed. The lines on which the strings were found are displayed. Notice that our test file is still in use. No search was performed on this member (otherwise, the string would have been found there as well). The summary statistics appear at the end of the report, along with a display of the search commands. 26.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 26-13. Example 26-13 FIND utility command FIND string1 AND string2 OR string3 col1 col2 F string1 & string2 | string3 col1 col2 Note: This does not apply to the FIND command in Edit/Browse mode. 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: Searching for a string in one field or another string in another field. Combining FIND and CHANGE in the same command. Restriction: You do not have the option of specifying a template and field reference instead of the starting and ending columns. Chapter 26. Using File Manager 775