Skip to main content

CTG Demo - ecicall.cbl

  • October 11, 2015
  • 1 reply
  • 0 views

Enterprise Developer provide sample programs, eci2oper.cbl and eci-call.cbl, for testing CTG.

These sample programs work fine as it is in the documentation.  I used ED for Eclipse v2.2 U2.

For testing purpose,

I rebuilt COBOL JVM Project with ecicall.cbl. It is same program with eci-call.cbl, just file anme renamed.

When I ran ecicall.cbl as COBOL JVM Application, I got following errors on Console view:

===== Copy of CONSOLE View ==========

Enter the message you want to send to the console (enter only to terminate program)
==> 1234567890
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x72c9e9b5, pid=4280, tid=4520
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b15) (build 1.8.0_45-b15)
# Java VM: Java HotSpot(TM) Client VM (25.45-b02 mixed mode windows-x86 )
# Problematic frame:
# C  [CCLAPI32.dll 0xe9b5]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\\CTG\\CTGCLIjvm\\hs_err_pid4280.log
#
# If you would like to submit a bug report, please visit:
#   bugreport.java.com/.../crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
The function under MTO has returned the                                                                                                                                                                                                         following return codes.
EIBRESP  : 38976288
EIBRESP2 : 38976288
Enter the message you want to send to the console (enter only to terminate program)
==>

-----------------------------------------------------------------------------------------------------------------

I have two questions:

  1. Can I make ecicall.cbl as JVM COBOL Program by help of any wrapper program ?

  2. Can I have Java program running equivalently with eci-call.cbl ?

Many Thanks


#EnterpriseDeveloper

1 reply

  • Author
  • Rocketeer
  • 19312 replies
  • October 12, 2015

Enterprise Developer provide sample programs, eci2oper.cbl and eci-call.cbl, for testing CTG.

These sample programs work fine as it is in the documentation.  I used ED for Eclipse v2.2 U2.

For testing purpose,

I rebuilt COBOL JVM Project with ecicall.cbl. It is same program with eci-call.cbl, just file anme renamed.

When I ran ecicall.cbl as COBOL JVM Application, I got following errors on Console view:

===== Copy of CONSOLE View ==========

Enter the message you want to send to the console (enter only to terminate program)
==> 1234567890
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x72c9e9b5, pid=4280, tid=4520
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b15) (build 1.8.0_45-b15)
# Java VM: Java HotSpot(TM) Client VM (25.45-b02 mixed mode windows-x86 )
# Problematic frame:
# C  [CCLAPI32.dll 0xe9b5]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\\CTG\\CTGCLIjvm\\hs_err_pid4280.log
#
# If you would like to submit a bug report, please visit:
#   bugreport.java.com/.../crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
The function under MTO has returned the                                                                                                                                                                                                         following return codes.
EIBRESP  : 38976288
EIBRESP2 : 38976288
Enter the message you want to send to the console (enter only to terminate program)
==>

-----------------------------------------------------------------------------------------------------------------

I have two questions:

  1. Can I make ecicall.cbl as JVM COBOL Program by help of any wrapper program ?

  2. Can I have Java program running equivalently with eci-call.cbl ?

Many Thanks


#EnterpriseDeveloper

As far as I'm aware, there is no support for calling the CICSEXTERNALCALL API from JVM COBOL. It's only available for native COBOL.

Micro Focus provides a set of Java classes for performing ECI from JVM programs - whether they're Java programs or JVM COBOL or something else. See the product documentation:

documentation.microfocus.com/.../GUID-2C6D3D41-6777-43DD-92D5-DADD952337A5.html

documentation.microfocus.com/.../BKMDMDINTRS006.html