what does the manual tell about running SRCHFOR in batch ?
if the SRCHFOR output does not fit Your taste You can always route it to a dataset
and after that process the same whit rexx/<SORT> to produce the report in the needed/wanted format
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort