COBOL CICS Command to stop a Transaction.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Sandy
Registered Member
Posts: 51
Joined: Sat Jun 15, 2013 1:07 pm

COBOL CICS Command to stop a Transaction.

Post by Sandy »

Hi,

What is the syntax of the cobol CICS command to stop an online Transaction? CEMT SET TASK(task number) PURGE can purge from terminal but what if we need to do it from COBOL.
harithb
New Member
Posts: 1
Joined: Mon Feb 03, 2014 5:30 pm

Re: COBOL CICS Command to stop a Transaction.

Post by harithb »

Hi,

for EXEC CICS INQUIRE refer to this link
http://publibfp.boulder.ibm.com/cgi-bin ... 0113170434

for EXEC CICS SET refer to this link
http://publibfp.boulder.ibm.com/cgi-bin ... 0113170434

Regards,
Haritha
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: COBOL CICS Command to stop a Transaction.

Post by Robert Sample »

Almost every command that can be issued through CEMT can be issued through a COBOL program. Many of them require the System Programming API of CICS, which is restricted at most sites, but they are available when required.

However, I cannot imagine any circumstances under which you would want to purge a task through a COBOL program -- there are too many potential pitfalls and problems to make this a viable approach.
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 “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”