Using OPSTHRSH to check the second line of a multi line message and it is abending with incorrect call.
)MSG CSQX548E MLWTO
CSQX548E :TCD1 CSQXRESP Messages sent to local dead-letter queue,
OPS0997T *-* 18:trace 'i'
OPS0997T *-* 22: tran_val = opsthrsh('A','43200',,2)
OPS0997T >L> A
OPS0997T >L> 43200
OPS0997T >L> 2
OPS1040I ERROR 40 RUNNING MSGGLB.CSQX548E, LINE 22: INCORRECT CALL TO
The syntax of the OPSTHRSH function is :
rtvl=OPSTHRSH('function',interval,['criteria'],[criteria_startpos],[mlwto_line_num])Specifying a line number for a MLWTO is most times to check that some characters are present on that line, which would be the 'C' criteria function, not asid ('A') function.
See for the full description of the OPSTHRSH function in the manual: