Closed girish-jha closed 8 months ago
@girish-jha Datatype: "NUMERIC (14,3)" may be the issue as it is unknown for ibm_db. Use DECIMAL or CHAR instead. Only datatypes coded under if block here is known for ibm_db. You can try using below parameters:
[
{ ParamType: "INPUT", Data: "ABCD", Length: 4, DataType: "CHAR" },
{ ParamType: "INPUT", Data: "1234567890", Length: 10, DataType: "CHAR" },
{ ParamType: "INPUT", Data: "AB", Length: 2, DataType: "CHAR" },
{ ParamType: "INPUT", Data: "A", Length: 1, DataType: "CHAR" },
{ ParamType: "INPUT", Data: "A", Length: 1, DataType: "CHAR" },
{ ParamType: "INPUT", Data: currentDate, Length: 8, DataType: "CHAR" },
{ ParamType: "INPUT", Data: currentDate, Length: 8, DataType: "CHAR" },
{ ParamType: "INPUT", Data: "ABC", Length: 3, DataType: "CHAR" },
{ ParamType: "INPUT", Data: "12345678901234", Length: 14, DataType: "CHAR" },
{ ParamType: "OUTPUT", Data: 0, DataType: "DECIMAL" },
{ ParamType: "OUTPUT", Data: 0, DataType: "DECIMAL" },
{ ParamType: "OUTPUT", Length: 14, Data: "", DataType: "CHAR" },
{ ParamType: "OUTPUT", Length: 14, Data: "", DataType: "CHAR" },
{ ParamType: "OUTPUT", Length: 3, Data: "", DataType: "CHAR" },
{ ParamType: "OUTPUT", Length: 1, Data: "a", DataType: "CHAR" },
{ ParamType: "OUTPUT", Length: 1, Data: "a", DataType: "CHAR" },
{ ParamType: "OUTPUT", Length: 1, Data: "a", DataType: "CHAR" },
{ ParamType: "OUTPUT", Length: 200, Data: "", DataType: "CHAR" }
]
Thanks.
I hope updating the code as suggested above have solved the issue. Closing it now. Thanks.
SP call failing with error
While invoking the SP we are getting the below error. The programming language for the same is COBOL.
We are not getting this error with other store procs where the language is RPGLE
Our parameter mapping looks like this
below is our SP head
Could you please suggest what is wrong? The closest we found is this https://www.ibm.com/support/pages/errorcode-4499-sqlstate58009-may-occur-against-db2-zos-v10-cm8
But we are already using the latest node-ibm_db.