The CICS/IMS Java™ Data Binding wizard enables you to
create a class or set of classes that map to COBOL, to C, or to PL/I data
structures.
To launch the Data Binding wizard, complete the following steps:
- If you do not see the J2EE icon,
, on the top right tab of the
workspace, you need to switch to the
J2EE perspective.
- To start the J2C dynamic wizard, from the menu bar, select File > New > Other > J2C.
- Select CICS/IMS Java Data Binding.
- Click Next.
- On the Specify data import configuration properties page, you specify
the data types that your binding class will use.
- On the Data Import page, you need to specify
the data import configuration properties.
Input
and Output data binding
Follow these steps to create
both the Input and the Output data binding:
- 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 to Java, C to Java, or PL/I to Java
- In the Data Import page, click Browse.
- Locate the source file that will provide 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.
- C MPO to Java, COBOL MPO to Java, or
PL/I MPO to Java (for output data types only)
These
multiple output data types wrapper one or more data types. These one or more
types can be existing types previously created, or new types you wish to create.
- If you want to use a data type that already exists in your project,
- Click Browse to use a data type that already 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.
- If you want to create a new data type,
- In the Data Import page, beside Multiple possible output, click New.
- In the new Data Import wizard that appears, click Browse.
- Locate the source file that will provide 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.
- Click Next.
This takes you to the Importer page for COBOL,
C or PL/I files, where you specify the communication data structure your Java class
will use. When you press Query, the data structure(s) will be populated into
the Data structure area. You can select one (or more if you are using MPO
options) data types from the list.