FCONTAINS, thanks for the tip! I upgraded a script I use as follows:
comment "checkcod", mpex command file to search files for strings
comment use-> :mpex...%xeq checkcod...(a job "printj" is submitted)
comment Remove the '$' to execute the search online
comment note: Be cautious of sending the output to a printer since
comment often most of it will be blank due to page breaks.
comment
comment To list all files searched and not just those containing
comment the search string, delete the 'FCONTAINS' line.
comment
$PRINT @.!HPGROUP.!HPACCOUNT &
(ISSTD &
&ISASCII &
&(CODE="" OR CODE="EDTCT") &
&FCONTAINS("searchstringhere") &
);SEARCH=CL "searchstringhere";KEEPAMDATES
John Backus
beechglen.com