Was just looking at this today in the Batch Reference manual
Scanning Parameters
Use scanning parameters to search for a sequence of characters within a range of
locations in a record. The scan length can be any number from 0 (zero) through 255
(excluding 1) as long as it is greater than the length of the data element. If you use 0
(zero), File-AID calculates a scan length from your specified location to the end of the
record. Scanning repositions the input relative location pointer when the data value is
found.
Note: A scanning parameter can test only for an equal (EQ) condition. The data
element of a scanning parameter is limited to character or hexadecimal data.
Example 1:
$$DD01 DUMP IF=(22,10,C?CLIPS?)
Example 1 generates a hexadecimal print of any record that contains the character string
CLIPS in the scan field between locations 22 and 31.
Example 2:
$$DD01 COPYALL REPL=(6,50,C?TEST?,C?PROD?)
Example 2 copies the input dataset while locating any record that contains the character
string TEST in the scan field between locations 6 and 55. When File-AID locates the string
TEST, it replaces it with the string PROD.
So basically the EQ is assumed and you can't change it. I was looking into using this to find profanity words in a file. But I believe with the Data Element only allowed to be Character or Hexdecimal it would be CASE sensitive. I believe I would need the data element to be Text for it to be case insensitive.
I think the only way I could do it would be to do it online and use the CO(Contains) relational operator but I want to run this in batch and the reference manual for Batch doesn't list CO as a valid operator.
Sorry for HiJacking the thread. Will probably be starting my own to solve my issue. Just wanted to let you know what the manual said about Scanning Parameters.