Is it possible to call a JVM COBOL program from a Native COBOL program?
Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it! Learn more
Is it possible to call a JVM COBOL program from a Native COBOL program?
Hi Sergi,
Have you reviewed the following:
Section: JVM COBOL Interoperating with Native COBOL
URL:
www.microfocus.com/.../GUID-BFEFAD45-04B1-4ED5-9D07-1A4A56378F30.html
This provides guidance, samples on how to work with the two components you refer too. Please mark as answered if appropriate.
Hello.
First of all thanks for answering.
I was reviewing the documentation and the example I have seen is a call from a COBOL JVM to a native COBOL and I need the opposite.
Also, in the interoperability limitations it says the following that I don't understand if it could be a problem:
"There is no correlation between JVM COBOL pointers and native pointers. This means that items declared as pointer in native interoperation give undefined results, but you can access the native memory from JVM via the JVM_UNSAFE_NATIVE_MEMCOPY API."
So I was wondering has anyone in the community made a call between native COBOL and JVM COBOL and if you have any examples.
Hi Sergi,
Does this link provide further specific help: (topic Pointers from Native Code to JVM COBOL) https://www.microfocus.com/documentation/visual-cobol/vc60/DevHub/GUID-B110C9EE-2571-4672-9814-FC5FDB975617.html