Creating Java data binding classes

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:

  1. If you do not see the J2EE icon, J2EE perspective icon, on the top right tab of the workspace, you need to switch to the J2EE perspective.
  2. To start the J2C dynamic wizard, from the menu bar, select File > New > Other > J2C.
  3. Select CICS/IMS Java Data Binding.
  4. Click Next.
  5. On the Specify data import configuration properties page, you specify the data types that your binding class will use.
  6. 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:

    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)
    2. 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.
    3. 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,
        1. Click Browse to use a data type that already 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.
      • If you want to create a new data type,
        1. In the Data Import page, beside Multiple possible output, click New.
        2. In the new Data Import wizard that appears, click Browse.
        3. 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)
        4. Highlight the source file and click Open to query for the data binding types.
        5. 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.

Feedback