steven gao wrote:
> Can Java or c program call cobol modules? in Tinycobol
> sample files, i find COBOL program file can be easy to
> call c file program.
> But COBOL as a legacy system, we often use our new Java
> or C modules to call COBOL file.are there any methods?
Yes, TC compiled COBOL (sub)programs can call C functions, and C
programs can call COBOL (sub)programs.
There are several examples in the 'test.code' directories.
Just think of TC compiled COBOL (sub)programs as equivalent to C
functions, with a return type of INT.
I would suggest using the current CVS version (0.62.13), as it has
options to define entry points.
AFAIK, no testing has been done using JAVA.
|