Export any item as a COBOL copybook
COBOL Copybook export now works for every item, not only items imported from a copybook: Apiome lays
out its types as 01 record layouts that mainframe programs (z/OS Connect, CICS, IMS) can COPY.
How types become records.
- Records. Nested objects become group items; lists become
OCCURStables, with a-COUNTfield for lists that vary in size; unions share storage withREDEFINES. - Pictures. Text is
PIC X(n), integersS9(n) COMP, decimals packedCOMP-3, booleans a one-character flag with condition names. - Names. COBOL data names, at most 30 characters and unique in the copybook — the same item always gets the same names.
- Options. Choose
COMPorDISPLAYnumbers, the default text length and table size, the decimal scale, and fixed or free format.
