You can use the CICS/IMS Java™ data binding wizard to create a class or set of classes
that map to COBOL, C, or PL/I data structures.
Procedure
- Select File > New > Other > J2C.
- Select CICS/IMS Java Data Binding, and click Next.
- On the Specify data import configuration properties page,
specify the data types for your binding class.
- On the Data Import page, specify
the data import configuration properties. To create
input and output data bindings:
- In the Choose mapping field, select one of the following choices as the mapping type:
- COBOL to Java
- C to Java
- COBOL MPO to Java (for output
data bindings only)
- C MPO to Java (for output
data bindings only)
- PL/I to Java
- PL/I MPO to Java (for output
data bindings only)
- COBOL CICS® Channel to Java
- C LANGUAGE Channel to Java
- PL/I Channel to Java
- Create an input type:
- To use an existing mapping file:
- Click Browse to use a data mapping that
exists in your project.
- In the Select a data type page, highlight the class that contains
the data binding (you can filter the list by typing an entry field
in the Select a data type field).
- Click Ok.
- To create a mapping:
- Click New to create a data mapping.
- In the new Data Import wizard that appears, click Browse. Locate the source file that provides the input. You can import
the following types of resources:
- COBOL file (.ccp, .cbl, .cpy, or .cob files)
- C file (.ccs, .h, or .c files)
- PL/I file (.pli, .inc, .mac files)
Highlight the source file and click Open to query for the data binding types, and click Next
- COBOL Language CICS Channel to Java,
C Language CICS Channel to Java, PL/I Language CICS Channel to Java If you choose one of these mapping options,
you can browse your source file and select all the containers to be
included in your channel. For more information about CICS channel support, see CICS Channel Support
What to do next
This takes you to the
Importer page
for COBOL, C or PL/I files, where you specify the communication data
structure that your Java class
uses. When you press Query, the data structures are populated into
the data structure area. You can select one (or more if you are using
MPO options) data types from the list.