Page 1 of 1

Terminate the transaction from a program.

Posted: Sun Oct 13, 2013 7:59 pm
by Dino
Hello,

Is it possible to terminate the transaction from a program? Or are there any CICS commands to do this?

Re: Terminate the transaction from a program.

Posted: Sun Oct 13, 2013 8:21 pm
by Robert Sample
It is not clear what you are asking.

If you are asking about ending a transaction in the program that is executing as part of the transaction, EXEC CICS RETURN will quit the transaction.

If you are asking about ending a transaction from a program that is not executing as part of the transaction, then it can be done but not easily. Look at the System Programming manual in the CICS bookshelf for the various commands that can be used.

Using

Code: Select all

CEMT I TASK(*)
allows you to look at executing tasks; it MAY be possible to cancel one of these tasks. However, if the program running the task gets into a loop and that loop does not include any CICS commands, then the transaction usually cannot be cancelled.

CICS monitors such as OMEGAMON or MAINVIEW include facilities to cancel transactions executing in a region and are usually the best way to cancel transactions (if available at your site).

Re: Terminate the transaction from a program.

Posted: Thu Oct 17, 2013 12:10 pm
by Dino
Robert Sample wrote:If you are asking about ending a transaction from a program that is not executing as part of the transaction, then it can be done but not easily. Look at the System Programming manual in the CICS bookshelf for the various commands that can be used.
Thanks for the directions, this is what I was looking for.

Regards,