5 pts.
 How to call a COBOL program from Java
From a java program, I have to call a set of COBOL programs. All the COBOL programs have the commitment control option as “slave”. These COBOL programs update a number of files. The web page should list the updated information from these files. After the user’s review, if the user selects the “CANCEL” button on the web page, I should be able to ROLLBACK all the updates done by the COBOL programs and go back to the main page. Are there any other options to achieve this requirement? Your help is appreciated.

Software/Hardware used:
ASKED: July 3, 2008  7:41 PM
UPDATED: July 7, 2008  2:40 PM

Answer Wiki:
Hi, I'm not a java person and it's been mnay years since I've used COBOL, so maybe I'm stating the obvious here, but if the user doesn't select CANCEL, then you should do a COMMIT to apply your changes. I'm also assuming that your data files are journalled as necessary to work correctly within the scope of your commitment control and commitment control is started before you call your COBOL programs. Regards, Martin Gilbert.
Last Wiki Answer Submitted:  July 4, 2008  12:03 pm  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _