Mapping variable-length fields to fixed-length fields
You can use FMTOPT(*MAP) to map variable-length fields to fixe-length fields.
If the data length of the from-field is less than or equal to the to-field length, the data is copied to the fixed-length to-field and padded to ensure data integrity.
If the length of the from-field data is greater than the to-field length, the from-field data is copied to the to-field and truncated on the right in a manner that ensures data integrity.
![]()
Parent topic:
Specifying data for different field types and attributes