Method 3 for EBCDIC mixed to PC mixed
This method has the following characteristics:
- It is used for conversion between an input EBCDIC mixed CCSID (with SO-SI code extension controls) and a PC mixed CCSID.
- The valid encoding scheme for the input data is X'1301', and for the output data the encoding schemes are X'2300', X'2305' and X'3300'.
The input parser separates the double-byte strings contained within the SO-SI pairs from the single-byte substrings. The SO-SI pair is discarded from the input string. The single-byte and the double-byte substrings are converted separately (shown in Figure 56).
The input single-byte substrings are converted to corresponding output single-byte substrings using the appropriate Type 1 table (shown in Figure 54a).
The input double-byte substrings are converted to corresponding output double-byte substrings using the appropriate Type 2 table (shown in Figure 55).
- The output generator concatenates the converted substrings in the same order as their corresponding input substrings.
- The contents of the conversion tables used govern the accuracy of the output data.
- Handling of the single-byte controls within the input double-byte substrings is beyond the scope of this method.
- The removal of the SO-SI code extension controls generally results in an output string that is shorter in length than the corresponding input string.
Figure 56. Method 3: Host Mixed Single/Double-Byte to PC Mixed Single/Double-Byte