Technical data

66 BEA WebLogic Integration Release Notes
Padding of mandatory fields
Note: All prior versions to 2.02 versions of MFL are completely supported.
Padding
Fixed-length fields containing data with a length shorter than the length specified in
the MFL definition are padded. In previous versions, padding was limited to padding
fields only at the end of the field. In MFL v2.02, the padding feature offers two options
for padding fixed-length fields:
Padding by Trailing option—allows padding at the end of fields
Padding by Leading option—allows padding at the beginning of fields
You can specify either but not both of these options. Padding of fields is done when
fields are translated from binary to XML and from XML to binary. MFL v2.02
provides a new attribute,
padtype, which can be specified with a value of either
leading or trailing.
Padding at the beginning of a field is indicated by the following:
padType=”leading”
Padding at the end of a field is indicated by the following:
padType=”trailing”
Truncating
In MFL v 2.02 includes a new truncation option. Using this feature, you can specify
the number of characters to be truncated at the start or the end of the field data. Two
truncation options are provided:
Truncate First n characters
Truncate After n characters
Both options require you to specify the number of characters (denoted by
n).
If the Truncate First
n characters option is selected, the first n number of characters are
removed or truncated from the field. The value
n should be an integer less than or equal
to the length of the field.