I googled WCLRRTS and got this link:
documentation.microfocus.com/.../index.jsp
"TESTSQLSTATE: Instructs OpenESQL to generate code that tests SQLSTATE rather than SQLCODE after an SQL statement is executed."
TESTSQLSTATE/NOTESTSQLSTATE is an SQL Compiler Directive Option - used at compile time
It is about using the option TESTSQLSTATE and from reading the documentation at the above link, I would put the NOTESTSQLSTATE option into your compilation (or set it as a permanent setting) and try again, and expect that the WCLRRTS code will not be generated again
The documentation also states that the default is NOTESTSQLSTATE so something at your end must have set things to TESTSQLSTATE somewhere along the line