you can use COBOL Copy Statement or DB2 INCLUDE Statement to include your CICS CopyBooks like BMS Symbolic Maps.
if my COPY book contains CICS statements
Yes, It's possible only if you have an INTEGERATED CICS TRANSLATOR to perform compilation and translation in one step.
The more recent COBOL and PL/I compilers from IBM provide an Integrated Translator component for embedded EXEC CICS statements. Previously these EXEC CICS statements were translated into native COBOL or PL/I in a separate step prior to the compilation step. Now you can do both translate and compile in one step.
It means no longer will you see different line numbers for the translate step and compile step. Debugging is thus improved, especially since the EXEC CICS is treated as a logical unit (single statement) and not as a series of cryptic COBOL or PL/I code.
It means you can now have EXEC CICS (and EXEC SQL, EXEC DL/I,...) in a copybook. Previously, since copybooks were not processed until after any translation, you had to forego the use of EXEC CICS statements in copybooks or, perhaps worse, have copybooks contain already translated statements.
The CICS Transaction Server V2.2 supports the integrated translator
component which is present in the following products:
- IBM Enterprise COBOL for OS/390 and z/OS V3
- IBM Enterprise PL/I for OS/390 and z/OS, V3
- IBM COBOL for OS/390 and VM, V2.2
Use the CICS compiler option to enable the integrated CICS translator and to specify CICS suboptions. If you specify the NOCICS option, the compiler diagnoses and discards any CICS statements that it finds in your source program. If you have already used the separate CICS translator, you must use the NOCICS compiler option.
Check your site for Integrated Translator. So, If you don't have this facility:
1. First Translate your COPY BOOK separately, before including it into your program.
2. Or Try a Precompiler before translation. But you must use INCLUDE statement.
3. Or use ISRSCAN or ISRLEMX Programs to copy the CICS statements using JCL.