I am calling a COBOL stored procedure from a JavaServlet. The COBOL stored procedure needs compressed numeric values and Java sends it Integer values. I'm getting an error saying my parameters don't match up. I'm wondering if it's because COBOL needs a compressed value. Has anyone else dealt with this or a similar problem? Please HELP!!! Thanks so much.
there is an example of this here and here (I think!) Jamie
Joined: Jul 05, 2001
It looked like to me that the links you gave me were for calling COBOL programs and I am calling a COBOL stored procedure. I have been using the CallableStatement variable in my Java code to call a COBOL stored proc. This is correct, isn't it???
I would think this could be problematic. I say this because CallableStatement is implemented by your jdbc drivers. So it only knows how to communicate with database stored procedures and java stored procedures. if you can invoke this stored procedure from your databases sql editor(like a SQL*Plus session) then your driver may know how to handle the datatype mapping. This should then be included in your drivers documentation. I guess what I'm saying is that I don't know...but I can sure hypothesize! Jamie