With release 11.6, there is a condition code '04' for warnings which was not present in release 6.4 for the CA Easytrieve product.
Please review the WARNCC parameter as documented in our Release Notes Guide, via this link:
It contains this information for you:
Warning Message Condition Code Option
WARNCC specifies which condition code the compiler returns for warning messages.
Typically a compilation that reports only warning messages returns with a condition
code of 4. You cannot override this value during program compilation.
This option has the following format:
Returns a condition code of 4 for warnings. This is the default.
Returns a condition code of 16 for warnings.
Returns a condition code of 0 for warnings.
So, please try setting your WARNCC parameter to Z as this should help you to not get the return code value of '04'. The warnings will still be displayed, but the condition code will be set to '0' to assist you in further steps.