Character Encodings/Code Tables/EBCDIC/EBCDIC 037

IBM code page 37 (CCSID 37) is an EBCDIC code page with the full Latin-1 character set used in IBM mainframes. It is used in some English- and Portuguese-speaking countries, including Australia, Brazil, Canada, New Zealand, Portugal, South Africa, and the United States.

CCSID 1140 is the euro currency update of code page/CCSID 37. In that code page, the "¤" (currency sign) character at code point 9F is replaced with the "€" (euro sign) character.

This code page was created in 1987. An older version is code page 1070.

Codepage layout
Code page 37 exists in two versions: a "base character set" or "DP94" version (GCSGID 101 with CPGID 37, or CCSID 8229), containing only 94 graphical characters (plus the space and control codes),   and a "CECP" (Country Extended Code Page) version (GCSGID 697 with CPGID 37, or CCSID 37) with expansions to support the entire ISO/IEC 8859-1 repertoire.

Code page translation
Since CP 037 contains all of the standard Latin-1 characters, it is possible to translate the character codes from the CP 037 charset to ISO 8859-1 character codes, so that translation back to the CP 037 charset is an exact value-preserving [round-trip conversion. Likewise, half of the control character codes can be translated into their exact ASCII equivalents. If the remaining EBCDIC-only control characters are translated (arbitrarily) into the remaining unused ASCII codes points (hex 80 to 9F) as well, the resulting translation covers all of the 256 character code points. Such a translation table is shown below:


 * {| class="wikitable chset nounderlines" frame="box" width="50%" style="text-align:center; font-family:monospace; border-collapse:collaps; background:#FFFFEF"


 * colspan="17"| CP 037 → ISO 8859-1
 * - bgcolor=#EFF3FF
 * bgcolor=#BFBFBF| ||_0||_1||_2||_3||_4||_5||_6||_7||_8||_9||_A||_B||_C||_D||_E||_F
 * bgcolor=#EFF3FF|0_||00||01||02||03||bgcolor=#E7E7E7|9C||09||bgcolor=#E7E7E7|86||7F||bgcolor=#E7E7E7|97||bgcolor=#E7E7E7|8D||bgcolor=#E7E7E7|8E||0B||0C||0D||0E||0F
 * bgcolor=#EFF3FF|1_||10||11||12||13||bgcolor=#E7E7E7|9D||85||08||bgcolor=#E7E7E7|87||18||19||bgcolor=#E7E7E7|92||bgcolor=#E7E7E7|8F||1C||1D||1E||1F
 * bgcolor=#EFF3FF|2_||bgcolor=#E7E7E7|80||bgcolor=#E7E7E7|81||bgcolor=#E7E7E7|82||bgcolor=#E7E7E7|83||bgcolor=#E7E7E7|84||0A||17||1B||bgcolor=#E7E7E7|88||bgcolor=#E7E7E7|89||bgcolor=#E7E7E7|8A||bgcolor=#E7E7E7|8B||bgcolor=#E7E7E7|8C||05||06||07
 * bgcolor=#EFF3FF|3_||bgcolor=#E7E7E7|90||bgcolor=#E7E7E7|91||16||bgcolor=#E7E7E7|93||bgcolor=#E7E7E7|94||bgcolor=#E7E7E7|95||bgcolor=#E7E7E7|96||04||bgcolor=#E7E7E7|98||bgcolor=#E7E7E7|99||bgcolor=#E7E7E7|9A||bgcolor=#E7E7E7|9B||14||15||bgcolor=#E7E7E7|9E||1A
 * bgcolor=#EFF3FF|4_||20||A0||E2||E4||E0||E1||E3||E5||E7||F1||A2||2E||3C||28||2B||7C
 * bgcolor=#EFF3FF|5_||26||E9||EA||EB||E8||ED||EE||EF||EC||DF||21||24||2A||29||3B||AC
 * bgcolor=#EFF3FF|6_||2D||2F||C2||C4||C0||C1||C3||C5||C7||D1||A6||2C||25||5F||3E||3F
 * bgcolor=#EFF3FF|7_||F8||C9||CA||CB||C8||CD||CE||CF||CC||60||3A||23||40||27||3D||22
 * bgcolor=#EFF3FF|8_||D8||61||62||63||64||65||66||67||68||69||AB||BB||F0||FD||FE||B1
 * bgcolor=#EFF3FF|9_||B0||6A||6B||6C||6D||6E||6F||70||71||72||AA||BA||E6||B8||C6||A4
 * bgcolor=#EFF3FF|A_||B5||7E||73||74||75||76||77||78||79||7A||A1||BF||D0||DD||DE||AE
 * bgcolor=#EFF3FF|B_||5E||A3||A5||B7||A9||A7||B6||BC||BD||BE||5B||5D||AF||A8||B4||D7
 * bgcolor=#EFF3FF|C_||7B||41||42||43||44||45||46||47||48||49||AD||F4||F6||F2||F3||F5
 * bgcolor=#EFF3FF|D_||7D||4A||4B||4C||4D||4E||4F||50||51||52||B9||FB||FC||F9||FA||FF
 * bgcolor=#EFF3FF|E_||5C||F7||53||54||55||56||57||58||59||5A||B2||D4||D6||D2||D3||D5
 * bgcolor=#EFF3FF|F_||30||31||32||33||34||35||36||37||38||39||B3||DB||DC||D9||DA||bgcolor=#E7E7E7|9F
 * }
 * bgcolor=#EFF3FF|8_||D8||61||62||63||64||65||66||67||68||69||AB||BB||F0||FD||FE||B1
 * bgcolor=#EFF3FF|9_||B0||6A||6B||6C||6D||6E||6F||70||71||72||AA||BA||E6||B8||C6||A4
 * bgcolor=#EFF3FF|A_||B5||7E||73||74||75||76||77||78||79||7A||A1||BF||D0||DD||DE||AE
 * bgcolor=#EFF3FF|B_||5E||A3||A5||B7||A9||A7||B6||BC||BD||BE||5B||5D||AF||A8||B4||D7
 * bgcolor=#EFF3FF|C_||7B||41||42||43||44||45||46||47||48||49||AD||F4||F6||F2||F3||F5
 * bgcolor=#EFF3FF|D_||7D||4A||4B||4C||4D||4E||4F||50||51||52||B9||FB||FC||F9||FA||FF
 * bgcolor=#EFF3FF|E_||5C||F7||53||54||55||56||57||58||59||5A||B2||D4||D6||D2||D3||D5
 * bgcolor=#EFF3FF|F_||30||31||32||33||34||35||36||37||38||39||B3||DB||DC||D9||DA||bgcolor=#E7E7E7|9F
 * }
 * bgcolor=#EFF3FF|C_||7B||41||42||43||44||45||46||47||48||49||AD||F4||F6||F2||F3||F5
 * bgcolor=#EFF3FF|D_||7D||4A||4B||4C||4D||4E||4F||50||51||52||B9||FB||FC||F9||FA||FF
 * bgcolor=#EFF3FF|E_||5C||F7||53||54||55||56||57||58||59||5A||B2||D4||D6||D2||D3||D5
 * bgcolor=#EFF3FF|F_||30||31||32||33||34||35||36||37||38||39||B3||DB||DC||D9||DA||bgcolor=#E7E7E7|9F
 * }
 * bgcolor=#EFF3FF|F_||30||31||32||33||34||35||36||37||38||39||B3||DB||DC||D9||DA||bgcolor=#E7E7E7|9F
 * }
 * }