Process JSON-formatted records with header and trailer details
This example demonstrates how to process the COBOL structure containing header and trailer definitions defined in a JSON format.
Configure the File Reader Snap to read the data for processing.
Next, connect the JSON Parser Snap to output the contents as a document downstream.
Configure the Cobol Copybook Formatter Snap with a valid matching Copybook to handle the incoming data and modify the additional settings based on the requirements for that Copybook.
The Cobol Copybook Formatter has the ability to accept multiple types of records in the input stream when multiple COBOL Structures are provided. In this case, the Structure name of the COBOL structure to be used must be the top level in the JSON input.
On validation, the pipeline processes the file and produces the formatted document.