Method 1 for SBCS
This method has the following characteristics:
- It is used for conversions between two pure single-byte CCSIDs.
- The valid encoding schemes for the input and output data are X'1100', X'2100', X'3100', X'4100', X'4105', X'4155', X'6100' and X'8100'; this method can also be used with ES X'5100' and X'5150' (single-byte 7-bit code) with considerations for the 7-bit limit.
- The conversion table selected by this method will be a single-byte code point to single-byte code point table from the input CS, CP pair to the output CS, CP pair (known as a TYPE 1 table). Figure 54a shows a model for a TYPE 1 conversion table.
- The contents of the table will reflect the criterion used for mismatch management.
- All control characters are treated as pure single-byte controls, and are mapped according to the mismatch management criterion.
- Handling of control function sequences is beyond the scope of this method.
The machine-readable format of the single-byte to single-byte conversion table is a file containing a single 256-byte record. This allows for 256 single-byte output values. Each character in the table corresponds to one input code point, X'00' through X'FF'. The byte value of the character that is found in the location corresponding to the input code point value is the output code point.
In the example shown in Figure 54a, to find the output code point for the input code point X'53', we look at offset X’53’ in the record. (The first position is offset X’00’ and the final position is offset X’FF’.) The value that we find at offset X’53’ is the corresponding output code point. In this example it is X'67'.
These tables are the standard distribution and storage format of CDRA.
Figure 54a. Single-byte to Single-byte Conversion
Return to Appendix B