You can use FMTOPT(*MAP) to map data between fixed-length and variable-length fields and between variable-length fields with different maximum lengths.
When mapping a variable-length field with a length of zero to a variable-length to-field, the to-field length is set to zero.
When mapping a variable-length field with a length of zero to a fixed-length to-field, the to-field is filled with single-byte blanks (X'40'), unless the to-field is a DBCS-only field. A DBCS-only to-field is set to X'4040's and surrounded by shift-out and shift-in (SO-SI) characters.
When mapping variable-length fields to variable-length fields and the from-field does not have a length of zero and graphic fields are not being mapped to or from bracketed DBCS fields, the following action happens: