OK I can now call the stored procedure, and as long as there are no records to update, it works. If there is work for it to do, though, it returns this output:
Code:
PSQLCODE: -303
PSQLSTATE: 42806
PSQLERRMC: A VALUE CANNOT BE ASSIGNED TO OUTPUT HOST VARIABLE NUMBER 18 BECAUSE THE DATA TYPES ARE NOT COMPARABLE
So, at least the passing back of the PSQLCODE, PSQLSTATE and PSQLERRMC is working.
The developer of the stored proc says that I need to pass 0 instead of ? in the 7th parameter. If I do that, though, I get this error:
Code:
DB21105E Parameter 7 for stored procedure "DA03.EROL_CLOSURE" should be an
OUTPUT parameter.
Any ideas? I don't have the source to the stored proc at the moment, I will try and get it.