Creating Java data binding classes using wizards

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.

Before you begin

If you do not see the Java EE icon, J2EE perspective icon on the top right tab of the workspace, you need to switch to the Java EE perspective.

Procedure

  1. Select File > New > Other > J2C.
  2. Select CICS/IMS Java Data Binding, and click Next.
  3. On the Specify data import configuration properties page, specify the data types for your binding class.
  4. On the Data Import page, specify the data import configuration properties. To create input and output data bindings:
    1. 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
    2. Create an input type:
      • To use an existing mapping file:
        1. Click Browse to use a data mapping that exists in your project.
        2. 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).
        3. Click Ok.
      • To create a mapping:
        1. Click New to create a data mapping.
        2. 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
    3. 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.

Feedback