Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


CICS

The CICS compiler option enables the integrated CICS translator and allows specification of CICS suboptions. You must use the CICS option if your COBOL source program contains EXEC CICS statements and the program has not been processed by the separate CICS translator.

CICS option syntax
Read syntax diagramSkip visual syntax diagram   .-NOCICS------------------------------.  
>>-+-------------------------------------+---------------------><
   'CICS--+---------------------------+--'  
          '-("CICS-suboption-string")-'     
 

Default is: NOCICS

Abbreviations are: None

Use the CICS option to compile CICS programs only. Programs compiled with the CICS option will not run in a non-CICS environment.

Attention: If you specify the CICS option, the compiler needs access to TXSeries V6.1 (or later).

If you specify the NOCICS option, any CICS statements found in the source program are diagnosed and discarded.

Use either quotation marks or single quotation marks to delimit the string of CICS suboptions.

You can use the syntax shown above in either the CBL or PROCESS statement. If you use the CICS option in the cob2 command, only the single quotation mark (') can be used as the string delimiter: -q“CICS('options')”.

You can partition a long suboption string into multiple suboption strings in multiple CBL statements. The CICS suboptions are concatenated in the order of their appearance. For example, suppose that your source file mypgm.cbl has the following code:

cbl . . . CICS(“string2”) . . .
cbl . . . CICS(“string3”) . . .

When you issue the command cob2 mypgm.cbl -q“CICS('string1')”, the compiler passes the following CICS suboption string to the CICS integrated translator:

“string1 string2 string3”

The concatenated strings are delimited with single spaces. If the compiler finds multiple instances of the same CICS suboption, the last specification of that suboption in the concatenated string takes effect. The compiler limits the length of the concatenated suboption string to 4 KB.

related concepts
Integrated CICS translator

related tasks
Coding COBOL programs to run under CICS
Compiling and running CICS programs

related references
Conflicting compiler options


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)