You can use this Snap Pack for consuming one or more COBOL Copybooks and a data stream to produce a JSON formatted message containing the structured payload.
Supported Copybook Structures and Payloads
Copybooks containing multiple 01 records, and payloads containing multiple record types.
Payloads with the following characteristics:
Continuous stream (no delimiter).
Mainframe variable record length file (4-byte length field with a 2-byte length which is the length of the payload plus the 4-byte RDW followed by 2 bytes of hex ‘00’s). A variation on the mainframe variable record length file where:
A 4-byte length consisting of a 2-byte length field that is byte-swapped for intel systems. This does not include the length of the 4-byte word. To be specific, it contains the length of the payload following the 4-byte length field.
The last two bytes of the length field are hex ‘00’s.
Big-Endian or Little-Endian payload.
All standard COBOL types including packed and zoned decimal.
COBOL array constructs such as ‘occurs’ and ‘occurs depending on'.
Payload encoded in EBCDIC (Extended Binary Coded Decimal Interchange Code) or any encoding supported by Java.