Running the program control examples

You can run the channel and COMMAREA examples to understand how CICS processes channels and containers or COMMAREAs. Programs can use either method to pass data, but containers are not limited to 32 KB.

Before you begin

Ensure the CICS region is configured, as described in Running the JCICS examples.

About this task

The examples demonstrate how to use the JCICS Program class to pass a channel and container or COMMAREA to another program. The COMMAREA example also shows you how to convert ASCII characters in the Java code to and from the equivalent EBCDIC used by the native CICS program.

The programs are started by sample CICS transactions. The examples use the following Java classes and CICS programs:

Example Transaction Program Java class
Channel JPC3 DFJ$JPC3 ProgramControl.ClassThree
DFJ$JPC4 ProgramControl.ClassFour
DFH$LCCC (C language) N/A
COMMAREA JPC1 DFJ$JPC1 ProgramControl.ClassOne
DFJ$JPC2 ProgramControl.ClassTwo
DFH$LCCA (C language) N/A

DFH$LCCA and DFH$LCCC are standard CICS programs that can be written in any of the supported high-level languages. If you do not have a C compiler, you can write COBOL versions of DFH$LCCA and DFH$LCCC and use them in place of the supplied C versions.

Procedure