Fix record
The "Fix record" parser is very similar to the CSV parser (the corresponding settings are already described there). The difference is just how the lines are read. In the CSV format, the values in a line are distinguished by the field separators. In the fixed-length format, the values are defined by the position in the line and a length. The position is determined by the position of the field in the node and the sums of the lengths of the preceding fields.
Settings
(1) Remove blanks (XML will be normalized): If this checkbox is set, all leading or trailing blanks are removed in fields with data type "String".
(2) Execute semantic checks: Incoming files can be checked with semantic rules. See section Semantic check .
Example
The following listing shows the CSV format example in fixed-length format.
OHOrder1
OPPos1 O1
OHOrder2
OPPos1 O2
OPPos2 O2
OHOrder3
OPPos1 O3
OPPos2 O3
OPPos3 O3
The source structure is not much different from the one in the CSV example. Field attribute "Length" (3) has to be specified for all fields (is only considered for this data type).
The easiest way to set the data type and length is via the field overview. The field overview can be accessed via the context menu entry "Field overview" of a node in the source structure.
Like in document type CSV, you can mix several types of datasets in one file, which can be separated by the match codes. If the datasets are not separated by a particular character (CR, LF, etc.), but are simply concatenated dataset by dataset, the datasets must all have the same length.