Export record layouts as PL/I include structures
The COBOL Copybook export has a Mode option for PL/I shops: pli writes the same record layout
as a PL/I include member. See
PL/I include structure output.
- The same layout, item for item:
DCL 1 … UNALIGNEDstructures withCHAR,FIXED DEC,FIXED BINand numeric pictures, dimensions,REFERfor tables that vary in size andUNIONfor overlays. Every item takes the same bytes as in the copybook. - The same fidelity report: every entry the copybook export reports, on the same fields and with the same grades, in PL/I terms; plus what only PL/I changes, such as 88-level values written as a comment.
- Checked before download: read back by Apiome's PL/I reader and compared with the copybook layout, item by item.
- CLI:
apiome export copybook <item> --option mode=pli --out <Name>.pli.
