Cobol Stored procedure call
Hi,
I want to call a Cobol Stored procedure which will return an Object.
("01-Variable" having 2-3 "05-variables"). How to go about that?
Can I define a new class with 05-variables mapped to member variables something like
public class AddressBook(){
private String Name;
private int TelephoneNo;
.....
getter and setter methods...
....
}
and while calling CobolSP we can do like
CallableStatement callableStatement = conn.prepareCall("CALL TESTSP(?)");
callableStatement.execute();
then
AddressBook ab = (AddressBook)callableStatement.getObject(1);
......
But I AM FACING PROBLEM WHILE REGISTERING THE OUTPUT PARAMETER...
How to proceed? Is there any neater way of achieving this?
The cobol structure is something like
01 addressbook
05 name
05 teleno
|