• Fixed field length: The following figure shows how mto code conversion is performed when the
fields specified in the field definition statement have a fixed length (when “end” is not specified
for the input field length). The record length of variable length Mainframe records have to be short
as the maximum record length −4.
Figure 20 Code Conversion in Variable Length Records (“end” not specified for field length)
.
• Record 1: Code conversion is performed on Field 1 only. Fields 2 and 3 are not processed.
• Record 2: Code conversion is performed on Fields 1 through 3.
• Record 3: Code conversion is performed on Fields 1 and 2. Field 3 is not processed.
• Last field = variable length: The following figure shows how otm (open systems-to-Mainframe) code
conversion is performed when the last field specified in the field definition statement has a variable
length (when “end” is specified for the input field length). The record length of variable length
Mainframe records have to be short as the maximum record length −4.
Figure 21 Code Conversion in Variable Length Records (with “end” specified for field length)
.
• You can specify “end” in the field definition statement only when the field is the last field of
the record. When “end” is specified, code conversion for the last field starts at the beginning
of the field and ends at the end of the record. In Figure 21, “end” is specified for Field 2, in-
dicated by the grey areas.
Using Data Exchange Code Converter40