Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 1st, 2005, 02:53 PM
Registered User
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cobol Stored procedure call

 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(?)");
AddressBook ab = (AddressBook)callableStatement.getObject(1);

How to proceed? Is there any neater way of achieving this?

The cobol structure is something like
01 addressbook
  05 name
  05 teleno

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedure call from CFMX Colonel Angus SQL Server 2000 0 September 20th, 2006 08:27 AM
Stored Procedure Call Syntax Bob Bedell VB.NET 2002/2003 Basics 1 March 26th, 2006 01:43 PM
How to call a Oracle Stored Procedure in VB6 krratnesh Pro VB Databases 1 February 19th, 2006 11:56 AM
To call oracle stored procedure in vb6 krratnesh Pro VB 6 0 February 1st, 2006 10:26 AM
Call a Stored Procedure Macsood ASP.NET 1.0 and 1.1 Basics 1 October 31st, 2005 11:29 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.