Copybook Snap Pack
Overview
You can use the Copybook Snap Pack to consume one or more COBOL Copybooks and a data stream to produce a JSON formatted message containing the structured payload.
This Snap Pack has the following Snaps:
- Cobol Copybook Parser: Parses one or more COBOL Copybooks and a data stream to produce a JSON formatted message containing the structured payload.
- Cobol Copybook Formatter: Formats JSON-structured input into a COBOL byte stream based on one or more COBOL Copybooks.
Supported versions
- Cobol Mainframe - All versions
- Cobol Open Systems - All versions
Supported Copybook Structures and Payloads
- Copybooks contain multiple 01 records, and payloads contain multiple record types.
- Payloads with the following characteristics: Fixed length, CRLF delimited, LF delimited, 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'.
- COBOL Redefines.
- Payload encoded in EBCDIC (Extended Binary Coded Decimal Interchange Code) or any encoding supported by Java.