HOW TO CALL A COBOL FUNCTION FROM JAVA?
Hi all,
I have a Cobol application running on a Linux machine. The application takes in certain inputs from the user (from the Linux command prompt) and stores them within text files in its local directory. Again when the user enters a search keyword the Cobol looksup these files and retrieves the related information on a successful search. I dont have access to the text files but I have access to the application (I have the whole Cobol application coding available with me).
My task is to develop a Java program that would interface with this Cobol application, call the Cobol functions that do the input/output with the text files and trap the necessary output.
Can anybody suggest how to go about this. Had the coding been in C/C++ I would have thought of usingt Java Native Interface, but how to do it for Cobol?
Thanks in advance.
I am posting this everywhere to get attention. Sorry for the multiple posting.
snodx

