Upgrading Cobol for MVS, VM, OS/390 and z/OS to IBM Enterprise COBOL Version 5 and Higher required some adjustment during migration.
This document gives some clue to diagnose errors that shows the migration has not been fully completed because some error are occurring while compiling Cobol program.
How to resolve IGYOS4003-E error?
Check the whole message text and find the parameter in cause, for example "IGYOS4003-E Invalid option "RES" was found and discarded."
Since you are compiling with Enterprise COBOL, some OS/VS COBOL compiler options are not supported anymore.
The RES or NORES option is not available with Enterprise COBOL.
With Enterprise COBOL, the object module is always treated such that library subroutines are located dynamically at run time, instead of being link-edited with the COBOL program. This is equivalent to RES behavior in OS/VS COBOL.
For any other option, please have a look to Enterprise COBOL for z/OS Migration Guide.