codegurukool.com · Free coding tutorials & online compiler

Home › Mainframe Tutorial › CICS basics

CICS basics

Online transactions.

CICS runs online transactions for thousands of users, such as an ATM request. A transaction starts a program, which talks to the terminal with commands like EXEC CICS SEND TEXT and ends with EXEC CICS RETURN.

Example code

       WORKING-STORAGE SECTION.
       01 MSG PIC X(15) VALUE 'HELLO FROM CICS'.
       PROCEDURE DIVISION.
           EXEC CICS SEND TEXT FROM(MSG) LENGTH(15) ERASE END-EXEC.
           EXEC CICS RETURN END-EXEC.

Run this code in the online editor

← DB2 basicsREXX scripting →