Reading COBOL datastructures from Java

后端 未结 8 968
情深已故
情深已故 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:34

    Microfocus provide a way of calling OO COBOL from Java.

    "You can write classes in OO COBOL which can be called from Java programs as though they were Java classes. You do this by providing a Java wrapper class, which provides a function for each method in the OO COBOL class. The Net Express Class and Method Wizards make this easy for you, by generating the Java code at the same time as the COBOL code."

    They also provide a tool called Enterprise Server which allows COBOL to interact with web services.

    If you have a COBOL program A, the tool allows you to expose A's interface section as a web service.

    Of course, because A now has a web service any other type of program (command line, Windows application, Java, ASP etc.) can now also call it and hence pass the COBOL data across to a Java program.

提交回复
热议问题