Batch file splitter
A batch file contains headers, records, and footers. Batch files can support a multiple combinations of header and footer. These combinations are configurable and are used as bases in splitting a batch file. Record separators are used in every split and you can define what character to use for record separator such as, a comma, forward slash, back slash, or "\n".
When splitting a batch, headers are first detected and then the trailers. If a data has no
matching header and footer, or if there is a header match but has no trailer, a unique message
is created. Here are some examples:
- If a header is found on the 5th record, the first four records are considered as the first message.
- If a trailer is found, the Splitter assumes that the succeeding records are part of the trailer.
- If a batch message is received through FTPScriptPollIn channel, dependent messages have a header based on the batch message.
- If a message is received through FTPScriptPollIn channel, after the batch split
dependent messages are assigned a header with this format:
1 - 6 = $$BAT
7 - 20 = Sender Reference
21 - 34 = Application Reference
35 - 84 = Service Reference 85 onwards = Record Separator