Terminate the transaction from a program.

Customer Information Control System. Middleware and MQ Series.
Post Reply
Dino
Registered Member
Posts: 52
Joined: Tue Jun 18, 2013 12:12 am

Terminate the transaction from a program.

Post by Dino »

Hello,

Is it possible to terminate the transaction from a program? Or are there any CICS commands to do this?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Terminate the transaction from a program.

Post 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).
Dino
Registered Member
Posts: 52
Joined: Tue Jun 18, 2013 12:12 am

Re: Terminate the transaction from a program.

Post 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,
Post Reply

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

Register

Sign in

Return to “CICS, Middleware and MQ Series.”