Previous example tested the CSV file with delimiter, now look at fixed-length file.
The objective is to convert fixed-length file to xml representation.
ABB, FULLNAME, GENDER and COUNTRY, each is with length 5,20,7,10 respectively. Example:
The target message type is 4 columns that repeatable at node row.
parameter Document Offset = 1. This is to offset the first line which is the header field name.
Parameter row.fieldFixedLengths = “5,20,7,10”. This mean the node “row” contain 4 fields and each field with the length specified.
Parameter row.fieldNames = “col1,col2,col3,col4”, this is the field names of node “row”.
Keep on posting!
File Adapter – Sender – Convert Single Fixed Length Structure to XML