How to call a COBOL program from Java

5 pts.
Tags:
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following