XREF sorts the search string occurrences before producing a listing.
The example shows a listing when both strings are found in the file
group.
Figure 1. Example
of XREF search on file group for two strings1 ASMFSUPC - MVS FILE/LINE/WORD/BYTE/SFOR COMPARE UTILITY- V1R6M0
LINE-# SOURCE LINES SRCH FN: NEW1* TESTCASE C
----- STRING="remove" IN NEW1 TESTCASE C1 -----
5 * * NEW: Use DPACMT to remove this assembler type comment.
6 -- *NEW: Use DPADCMT to remove this line.
----- IN NEW13 TESTCASE C1 -----
5 * * NEW: Use DPACMT to remove this assembler type comment.
6 -- *NEW: Use DPADCMT to remove this line.
----- STRING="rid" IN NEW1 TESTCASE C1 -----
2 /** NEW: To get rid of this PLI/REXX type comment, use DPPLCMT. */
3 (** NEW: To get rid of this PASCAL type comment, use DPPSCMT. *)
----- IN NEW13 TESTCASE C1 -----
⋮
THE FOLLOWING PROCESS STATEMENT(S) WERE PROCESSED:
SRCHFOR 'remove'
SRCHFOR 'rid'