Converting Variable-Length UNIX/PC Records to Variable-Length Mainframe Records (otm)
After removing the delimiters in the variable length UNIX/PC records, code conversion is performed
on each field, and the result is output to the Mainframe in variable length record format. The output
record length after conversion must equal to (the maximum record length defined for the Mainframe
record −4).
• Fixed field length: The following figure shows how otm code conversion is performed when the
fields specified in the Field Definition file have a fixed length (when “end” is not specified for the
input field length). Delimiters are not output to the Mainframe records. The record length of variable
length Mainframe records have to be short as the maximum record length −4.
Figure 22 Overview of 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 file has a variable
length (when “end” is specified for the input field length).
P9000 Data Exchange Code Converter User Guide 41