END-SEARCH not allowed with NEXT SENTENCE in SEARCH statement. Not accepted.
30
Cause . . . . . : If the NEXT SENTENCE phrase is specified in a SEARCH statement, the END-SEARCH phrase must not be specified.
Recovery . . . : Remove the END-SEARCH phrase.