Search code examples
transactionsdb2cobolmainframecics

Close a Transaction CICS


I have a short program COBOL CICS, it's a basic CRUD. In this program I have an options, when I press F12 I want to exit, close my transaction.

I want to press F12 and the transaction close.

Can I write any command to do that in my COBOL program?

Thanks


Solution

  • Assuming you have a pseudo conversational program, each time it is invoked the key pressed will be in EIBAID

    the scenario you have described is documented in the Knowledge center here https://www.ibm.com/support/knowledgecenter/SSGMCP_5.5.0/applications/designing/dfhp31i.html

    Hope that helps