To code a program to run under CICS, code CICS commands in the PROCEDURE DIVISION by using the EXEC CICS command format.
EXEC CICS command-name command-options END-EXEC
CICS commands have the basic format shown above. Within EXEC commands, use the space as a word separator; do not use a comma or a semicolon. Do not code COBOL statements within EXEC CICS commands.
In general, the COBOL language is supported in a CICS environment. However, there are restrictions and considerations that you should be aware of when you code COBOL programs to run under TXSeries.
Do not use EXEC, CICS, or END-EXEC as variable names, and do not use user-specified parameters to the main program. In addition, it is recommended that you not use any of the following COBOL language elements:
The following COBOL statements are also not recommended for use in a CICS environment:
Apart from some forms of the ACCEPT statement, mainframe CICS does not support any of the COBOL language elements in the preceding list. If you use any of those elements, be aware of the following limitations:
related tasks
Getting the system date under CICS
Making dynamic calls under CICS
Accessing SFS data
Calling between COBOL and C/C++ under CICS
related references
DB2 file system
ADDR
FILEMODE
System z host data format considerations