From the manual:
ICE114A INVALID COMPARISON
Last Updated: 2021-10-28
Explanation
Critical. One of the following situations exists:
The COND operand of an INCLUDE or OMIT statement, or the INCLUDE or OMIT operand of an OUTFIL statement or JOINKEYS statement, or the TRLID operand of an OUTFIL statement, or the IFTHEN WHEN, BEGIN or END operand of an INREC, OUTREC, or OUTFIL statement, contained an invalid field-to-field, field-to-mask, or field-to-constant comparison, or used a field with NUM that was not FS, CSF, PD, or ZD, or used a field with UC, LC, MC, UN, LN or MN that was not BI.
FORMAT=SS was specified after COND in an INCLUDE or OMIT statement.
Also in the manual:
INCLUDE FORMAT=SS,COND=(11,6000,EQ,C'OK',OR,5,3,EQ,C'J69,L92,J82')
This example illustrates how to include only records in which:
OK is found somewhere within bytes 11 through 6010
OR
Bytes 5 through 7 contain J69, L92 or J82.
I am not a SORT expert, but I think if you insist on putting COND=...,SS, then you will never get the code to work.