When emulating DB2 for OS/390, you must use COMP fields in your SQLDA definition. If you specify OPTIMIZE=PC, you must use COMP-5 fields.
Change the XDB OPTIMIZE directive or modify your SQLDA definition, then recompile the program.