You can code CICS statements in your PL/I applications using the language defined in CICS on Open Systems Application Programming Guide. Specific requirements for your CICS code are described in the sections that follow.
If you use the CICS translator, rather than the integrated preprocessor, then the first statement of your PL/I program must be a PROCEDURE statement. You can add CICS statements to your program wherever executable statements can appear. Each CICS statement must begin with EXEC (or EXECUTE) CICS and end with a semicolon (;).
For example, the GETMAIN statement might be coded as follows:
EXEC CICS GETMAIN SET(BLK_PTR) LENGTH(STG(BLK));
In addition to the CICS statements, PL/I comments can be included in embedded CICS statements wherever a blank is allowed.
Line continuation rules for CICS statements are the same as those for other PL/I statements.
If included code contains EXEC CICS statements or your program uses PL/I macros that generate EXEC CICS statements, you must use one of the following:
CICS statements must be coded within the columns specified in the MARGINS compile-time option.
EXEC CICS statements, like PL/I statements, can have a label prefix.