Page 1 of 1

COBOL CICS Command to stop a Transaction.

Posted: Tue Feb 18, 2014 11:58 am
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.

Re: COBOL CICS Command to stop a Transaction.

Posted: Tue Feb 18, 2014 12:05 pm
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

Re: COBOL CICS Command to stop a Transaction.

Posted: Tue Feb 18, 2014 7:36 pm
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.