Reading COBOL datastructures from Java

后端 未结 8 967
情深已故
情深已故 2020-12-13 05:14

Is there a way to read COBOL data in a Java program? More concretely I\'m confronted with the following case:

I have a file with fixed length records of data. The da

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 05:37

    Rational Application Developer can read COBOL source code and generate Java classes. The generated classes have methods for accessing the various part of the COBOL data structure. The class that is generated is compatible with the J2EE Connector Architecture. To create a class in your project, select File, New, Other then select the CICS/IMS Java Data Binding wizard under J2C. Click next. Choose COBOL to Java for mapping. Select your COBOL file. Select the structure you wish to generate a Java class for then click Finish and there you go. There are of course a number of options you can select along the way that I didn't mention. For more information search Help for J2C.

提交回复
热议问题