Question

  Asked: Jul 3 2008   7:41 PM GMT
  Asked by: Srini2


How to call a COBOL program from Java


COBOL, Java, Web services

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.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0




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.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on DataCenter and Development.

Looking for relevant DataCenter Whitepapers? Visit the SearchDataCenter.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register