I found a Power Point "Enterprise COBOL and Java Interoperation". Nick Tindall and Stephen Miller It's advice is to use a OO COBOL Class as a wrapper to call procedural COBOL. In CICS I have sucsessfully called procedureal COBOL from Java, but using the JCICS classes.

What is the JCICS doing to allow me to call my old COBOL routines in a PDS using just a COMMAREA as a parameterr?


From: "Kuredjian, Michael" <[EMAIL PROTECTED]>
Reply-To: IBM Mainframe Discussion List <[email protected]>
To: [email protected]
Subject: Re: Java calls old COBOL
Date: Tue, 8 Aug 2006 09:08:56 -0400

Also, keep in mind that JNI doesn't support passing objects, just primitives.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED]
Behalf Of Craddock, Chris
Sent: Monday, August 07, 2006 5:09 PM
To: [email protected]
Subject: Re: Java calls old COBOL


> The current manuals and IBM Red Books only talk about the OO style
COBOL
> with Java. We need to know how to call our old existing COBOL routines
> from Java.

Warning, I have never done this and I don't speak COBOL, but... You need
to make a JNI call from the IBM Java environment into a compiled program
running in an LE-conforming environment. COBOL is (in theory) exactly
that.

All of the examples are probably C, but any language supported by LE
ought to work. You might need to write a C stub to line up the
parameters for your COBOL code and make the call to the COBOL
subroutines from there. I don't think its likely to be brain surgery.

CC

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to