Writing code using a hybrid coded character set

Figure 1 illustrates some of the problems with hybrid files. The following steps were done when writing this code:
  1. Look up each variant character in coded character set IBM-1047 to find out what the compiler expects. For example, z/OS® XL C/C++ expects the character [ to have a byte value of X'AD'.
  2. Determine which glyph is at X'AD' in the local coded character set, then use this in the code.
  3. Always use the appropriate substitution. For example, to obtain a needed [ in Germany, one would look up X'AD' in the German IBM-273 coded character set, and find the character Ý.