On Mon, Apr 23, 2018 at 8:23 AM, Jerry Callen <[email protected]> wrote:

>
> I've programmed in assembler, PL/I, COBOL and C/C++. If you are dealing
> with COBOL records that make extensive use of OCCURS DEPENDING ON, it
> probably make sense to stick with COBOL. Otherwise, it's quite easy to
> write robust, efficient code in C and C++ on z/OS.
>
>
Indeed.... COBOL ODO and related complexities make it difficult.

The IBM Record Generator for Java"  (formerly known as the JZOS Record
Generator) does support converting COBOL ADATA layouts to Java record
mapping classes:

https://www-01.ibm.com/common/ssi/cgi-bin/ssialias?infotype=an&subtype=ca&supplier=897&letternum=ENUS217-295
    https://developer.ibm.com/cics/2016/05/12/java-cics-using-ibmjzos/

If you run a COBOL ODO through this, you can see the generated Java code
that handles var length strings, arrays of structures, and offsetting
everything (and the things that follow ODOs).

The same thing could be implemented for C/C++.  SMOP :-)

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to