COBOL

COBOL

COBOL

COBOL is responsible for the efficient, reliable, secure, and unseen day-to-day operations of the world's economy.

 View Only
Expand all | Collapse all

Java calling COBOL using JNI-Services - RC-problem

  • 1.  Java calling COBOL using JNI-Services - RC-problem

    Posted Thu June 22, 2017 05:36 AM

    Hi everybody!

     

    During some tests with Java calling COBOL (V4.2) in z/OS Batch we encountered a problem checking the JNI-RC for services like GetByteArayElements, New ByteArray etc. Services are working fine but the RC is never "ok" but alo not one of the other defined stati.

     

    Is this a known issue?

    Thanks for any hint

    Sabine

    lauterbachS


  • 2.  Re: Java calling COBOL using JNI-Services - RC-problem

    Posted Mon June 26, 2017 01:32 PM

    This is a bit embarrassing.  I've scanned through the sources for several versions of the compiler (including both Enterprise and AIX) as well as the language run time.  I can't see COBOL doing anything with  JNI-RC.  If anyone out there does have an example of JNI-RC being set, please let me know what version of the compiler you are using.

    ahkielstra