Hello,
Is it possible to terminate the transaction from a program? Or are there any CICS commands to do this?
Terminate the transaction from a program.
- Robert Sample
- Global Moderator
- Posts: 1886
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Terminate the transaction from a program.
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.
Usingallows 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).
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(*)
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.
Thanks for the directions, this is what I was looking for.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.
Regards,
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute