Good morning,
We are integrating a PL/I pricing module with an existing COBOL order entry program. The PL/I structure is declared as:
pli
DCL 1 PRICE_REQ BASED(REQ_PTR),
2 PRODUCT_CODE CHAR(12),
2 REGION_CODE CHAR(3),
2 ORDER_QTY FIXED BIN(31),
2 REQUEST_DATE CHAR(8);
The COBOL copybook uses aligned elementary items with equivalent picture clauses. Initial testing shows REGION_CODE is offset by two bytes in the COBOL view.
The Enterprise PL/I Programming Guide states:
Has anyone established a standard approach for generating shared copybooks or layout proofs between PL/I and COBOL on z/OS?Structure alignment and padding depend on compiler options and subscript bounds. Verify layout with LISTVIEW or equivalent when interfacing with non-PL/I programs.
Regards,
James