Misplaced Pages

EBCDIC: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 17:28, 13 September 2008 editLoadmaster (talk | contribs)Extended confirmed users, Pending changes reviewers, Rollbackers13,240 edits Codepage layout: number sign (#) is not an invariant code point← Previous edit Latest revision as of 23:31, 26 December 2024 edit undoGuy Harris (talk | contribs)Extended confirmed users76,614 edits History: Talk about C/C++ POSIX environments on IBM OS/VS2 Multiple Virtual Spaces :-) in the section about IBM's mainframe OSes, not the section about UN*Xes for IBM Z and IBM Power Systems, and various UN*Xes and Microsoft OSes for PCs, which discusses environments where ASCII (and extended versions thereof) are *the* character encoding. Add a reference, and clarify that it's mainframe compilers for mainframe OSes. 
(581 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
{{Short description|Eight-bit character encoding system invented by IBM}}
'''Extended Binary Coded Decimal Interchange Code''' ('''EBCDIC''') is an 8-] ] (]) used on ] ] such as ], ], ] and ], as well as ] ] operating systems such as ] and ] (see also ]). It is also employed on various non-IBM platforms such as ]-]' ], ] ], and ] ]. It descended from ]s and the corresponding six bit ] code that most of IBM's ] of the late 1950s and early 1960s used.
{{More citations needed|date=January 2019}}
{{Use dmy dates|date=May 2019|cs1-dates=y}}
{{infobox character encoding
| name = EBCDIC encoding family
| classification = 8-bit ] encodings (non‑ASCII)
| prev = ]
}}
'''Extended Binary Coded Decimal Interchange Code'''<ref name="Mackenzie_1980"/><ref>{{cite book |title=Systems Programming |last=Donovan |first=John J. |author-link=John J. Donovan |isbn=0-07-085175-1 |date=1972 |page=65 |publisher=McGraw-Hill }}</ref> ('''EBCDIC''';<ref name="Mackenzie_1980"/> {{IPAc-en|ˈ|ɛ|b|s|ᵻ|d|ɪ|k}}) is an eight-] ] used mainly on ] and ] ] operating systems. It descended from the code used with ]s and the corresponding ] code used with most of IBM's ]s of the late 1950s and early 1960s.<ref name="Bemer_P-Bit"/> It is supported by various non-IBM platforms, such as ]' ], OS-IV, MSP, and MSP-EX, the ], ] ], Unisys ] and ] ].


== History == == History ==
] with the Hollerith encoding of the 1964 EBCDIC character set. Contrast at the top is enhanced to show the printed characters. The "number" punches (0–9) directly translate to the lower 4 bits of EBCDIC, though the upper 4 bits of EBCDIC are more complex.]]
EBCDIC was devised in 1963 and 1964 by ] and was announced with the release of the ] line of mainframe ]s. It was created to extend the ] encoding that existed at the time. It is an 8-bit character encoding, in contrast to, and developed separately from, the 7-bit ] encoding scheme.
EBCDIC was devised in 1963 and 1964 by ] and was announced with the release of the ] line of mainframe ]s. It is an eight-bit character encoding, developed separately from the seven-bit ] encoding scheme. It was created to extend the existing ] (BCD) Interchange Code, or ], which itself was devised as an efficient means of encoding the two ''zone'' and ''number'' punches on ] into six bits. The distinct encoding of 's' and 'S' (using position 2 instead of 1) was maintained from punched cards where it was desirable not to have hole punches too close to each other to ensure the integrity of the physical card.<ref>{{Cite web |title=Doug Jones's punched card codes |url=http://homepage.cs.uiowa.edu/~jones/cards/codes.html |access-date=2023-01-14 |website=homepage.cs.uiowa.edu}}</ref>{{failed verification|date=January 2023}}


Interestingly, IBM was a chief proponent of the ASCII standardization committee. However, IBM did not have time to prepare ASCII peripherals (such as card punch machines) to ship with its System/360 computers, so the company settled on EBCDIC at the time. The System/360 became wildly successful, and thus so did EBCDIC. While IBM was a chief proponent of the ASCII standardization committee,<ref name="SR-IX"/> the company did not have time to prepare ASCII peripherals (such as card punch machines) to ship with its System/360 computers, so the company settled on EBCDIC.<ref name="Bemer_P-Bit"/> The System/360 became wildly successful, together with clones such as ], ], and Fujitsu FACOM, thus so did EBCDIC.


All IBM's mainframe ]s, and its ] operating system for ]s, use EBCDIC as their inherent encoding<ref name="ibmebcdic"/> (with toleration for ASCII, for example, ] in ] can browse and edit both EBCDIC and ASCII encoded files). Software can translate to and from encodings, and modern mainframes (such as ]) include processor instructions, at the hardware level, to accelerate translation between character sets. Modern z/OS compilers for the C and C++ languages on ] mainframes, and earlier ] C and C++ compilers on ] mainframes, support a POSIX-compatible execution environment that makes use of ASCII by default.<ref>{{cite web|url=https://www.ibm.com/docs/en/zos/3.1.0?topic=pages-enhanced-ascii|title=Enhanced ASCII|work=z/OS UNIX System Services Planning|date=2024-08-28}}</ref>
All IBM mainframe ]s and ]s (except ] or ]) use EBCDIC as their inherent encoding.<ref name="ibmebcdic">{{cite web
| url=http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.adms700/adms7a05158.htm
| title=IBM confirms the use of EBCDIC in their mainframes as a default practice
| year=2008
| accessdate=2008-06-16
| author=IBM
}}</ref><!-- Found by Steven Powell --> but software can translate to and from other encodings. Many hardware peripherals provide translation as well and modern mainframes (such as IBM ]) include processor instructions, at the hardware level, to accelerate translation between character sets.


Not all operating systems running on IBM hardware use EBCDIC; ], ], and ] all use ASCII, as do all operating systems that run on the ] and its successors.
At the time it was devised, EBCDIC made it relatively easy to enter data into a computer with ]. Since ] are no longer used on mainframes, EBCDIC is used in modern mainframes solely for backwards compatibility. It has no real technical advantage over ASCII-based code pages such as the ] series or ]. There are some technical niceties in each, e.g., ASCII and EBCDIC both have one bit which indicates upper or lower case. But there are some aspects of EBCDIC which make it much less pleasant to work with than ASCII (such as a non-contiguous alphabet). As with single-byte ] codepages, most EBCDIC codepages only allow up to 2 languages (English and one other language) to be used in a ] or text file.


== Compatibility with ASCII ==
Where true support for multilingual text is desired, a system supporting far more characters is needed. Generally this is done with some form of Unicode support. There is an EBCDIC ] called ] proposed by the Unicode consortium, but it is not intended to be used in open interchange environments and, even on EBCDIC-based systems, it is almost never used. IBM mainframes support ], but they do not support UTF-EBCDIC natively.
{{More citations needed section|date=November 2022}}
There were numerous difficulties to writing software that would work in both ASCII and EBCDIC.
* The gaps between letters made simple code that worked in ASCII fail on EBCDIC. For example {{code|1=for (c = 'A'; c <= 'Z'; ++c) putchar(c);|lang=c}} would print the alphabet from A to Z if ASCII is used, but print 41 characters (including a number of unassigned ones) in EBCDIC.
* Sorting EBCDIC put lowercase letters before uppercase letters and letters before numbers, exactly the opposite of ASCII.
* Most programming languages and file formats and network protocols designed for ASCII used available punctuation marks (such as the curly braces {{char|{{(}}}} and {{char|{{)}}}}) that did not exist in EBCDIC, making translation to EBCDIC systems difficult. Workarounds such as ] were used.<ref>{{cite web|title=Rationale for International Standard – Programming Languages – C|version=Revision 5.10|date=April 2003|url=http://www.open-std.org/jtc1/sc22/wg14/www/C99RationaleV5.10.pdf#page=204|at=§ MSE.4: Support for invariant ISO/IEC 646|access-date=2022-11-24 |url-status=live|archive-url=https://web.archive.org/web/20160606072228/http://www.open-std.org/jtc1/sc22/wg14/www/C99RationaleV5.10.pdf|archive-date=2016-06-06}}</ref> Conversely EBCDIC had a few characters such as {{char|¢}} (]) that were used on IBM systems and could not be translated to ASCII.
* The most common newline convention used with EBCDIC is to use a ] (NEXT LINE) code between lines. Converters to other encodings often replace NEL with ] or ], even if there is a NEL in the target encoding. This causes the LF and NEL to translate to the same character and be unable to be distinguished.
* If seven-bit ASCII was used, there was an "unused" high bit in 8-bit bytes, and many pieces of software stored other information there. Software would also pack the seven bits and discard the eighth, such as packing five seven-bit ASCII characters in a ] word.<ref>{{cite book|url=http://www.bitsavers.org/pdf/dec/pdp10/1970_PDP-10_Ref/1970PDP10Ref_Part2.pdf|title=PDP-10 Reference Handbook, Book 2: Assembling the Source Program|page=221|publisher=]}}</ref> On the ], bytes with the high bit set were treated as negative numbers, behavior that was copied to ], causing unexpected problems if the high bit was set. These all made it difficult to switch from ASCII to the 8-bit EBCDIC (and also made it difficult to switch to 8-bit ] encodings).


== Code page layout ==
Arabic EBCDIC versions are typically in presentation order, in left to right order as displayed by an older mainframe or line printer, rather than in the right to left logical order used by modern encodings such as Unicode.
{{Further|Code page#EBCDIC-based code_pages|l1=EBCDIC code pages}}


There are hundreds of EBCDIC code pages based on the original EBCDIC character encoding; there are a variety of EBCDIC ]s intended for use in different parts of the world, including code pages for non-Latin scripts such as Chinese, Japanese (e.g., EBCDIC 930, JEF, and KEIS), Korean, and Greek (EBCDIC 875). There is also a huge number of variations with the letters swapped around for no discernible reason.{{citation needed|date=December 2022}}
== Codepage layout ==
The table below is derived from ], one of the code page variants of EBCDIC, showing only the basic (English) EBCDIC characters. Characters 00–3F and FF are ]s, 40 is ], 41 is ] (''RSP'': "Required Space"), E1 is numeric space (''NSP'': "Numeric Space"), and CA is ]. Characters are shown with their equivalent ] codes. Invariant alphanumeric, punctuation, and control characters common to all EBCDIC code pages are shown in color. Unassigned codes are typically filled with international or region-specific characters in the various EBCDIC ] variants.


The table below shows the "invariant subset"<ref>{{cite web| url = https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/nls/rbagsinvariantcharset.htm| website = IBM Knowledge Center | title = Invariant character set| date = 14 August 2018 }}</ref> of EBCDIC, which are characters that ''should'' have the same assignments on all EBCDIC code pages that use the Latin alphabet. (This includes most of the ] invariant repertoire, except the ].) It also shows (in gray) missing ASCII and EBCDIC punctuation, located where they are in ] (one of the code page variants of EBCDIC). The blank cells are filled with region-specific characters in the variants, but the characters in gray are often swapped around or replaced as well. Like ASCII, the invariant subset works only for languages using the ], such as English (excluding loanwords and some uncommon orthographic variations) and Dutch (if the "ij" and "IJ" ligatures are written as two characters).
{| {{chset-tableformat}}

{|{{chset-table-header1|EBCDIC}}
|- |-
|{{chset-left1|0x}}
! colspan="17" |EBCDIC
|{{chset-ctrl1|U+0000 NULL|{{Control code link|NUL}}}}
|{{chset-ctrl1|U+0001 START OF HEADING|{{Control code link|SOH}}}}
|{{chset-ctrl1|U+0002 START OF TEXT|{{Control code link|STX}}}}
|{{chset-ctrl1|U+0003 END OF TEXT|{{Control code link|ETX}}}}
|{{chset-ctrl1| |{{Control code link|SEL}}}}
|{{chset-ctrl1|U+0009 CHARACTER TABULATION|&nbsp;{{Control code link|HT}}&nbsp;}}
|{{chset-ctrl1| |{{Control code link|RNL}}}}
|{{chset-ctrl1|U+007F DELETE|{{Control code link|DEL}}}}
|{{chset-ctrl1| |&nbsp;{{Control code link|GE}}&nbsp;}}
|{{chset-ctrl1| |{{Control code link|SPS}}}}
|{{chset-ctrl1| |{{Control code link|EBCDIC:RPT}}}}
|{{chset-ctrl1|U+000B LINE TABULATION|&nbsp;{{Control code link|VT}}&nbsp;}}
|{{chset-ctrl1|U+000C FORM FEED (FF)|&nbsp;{{Control code link|FF}}&nbsp;}}
|{{chset-ctrl1|U+000D CARRIAGE RETURN (CR)|&nbsp;{{Control code link|CR}}&nbsp;}}
|{{chset-ctrl1|U+000E SHIFT OUT|&nbsp;{{Control code link|SO}}&nbsp;}}
|{{chset-ctrl1|U+000F SHIFT IN|&nbsp;{{Control code link|SI}}&nbsp;&nbsp;}}
|- |-
|{{chset-left1|1x}}
| width="4%" |
|{{chset-ctrl1|U+0010 DATA LINK ESCAPE|{{Control code link|DLE}}}}
! width="6%" | —0 || width="6%" | —1
|{{chset-ctrl1|U+0011 DEVICE CONTROL ONE|{{Control code link|DC1}}}}
! width="6%" | —2 || width="6%" | —3
|{{chset-ctrl1|U+0012 DEVICE CONTROL TWO|{{Control code link|DC2}}}}
! width="6%" | —4 || width="6%" | —5
|{{chset-ctrl1|U+0013 DEVICE CONTROL THREE|{{Control code link|DC3}}}}
! width="6%" | —6 || width="6%" | —7
|{{chset-ctrl1| |{{Control code link|RES/ENP|RES/<br/>ENP}}|style=line-height:1}}
! width="6%" | —8 || width="6%" | —9
|{{chset-ctrl1|U+0085 NEXT LINE (NEL)|&nbsp;{{Control code link|NL}}&nbsp;&nbsp;}}
! width="6%" | —A || width="6%" | —B
|{{chset-ctrl1|U+0008 BACKSPACE|&nbsp;{{Control code link|BS}}&nbsp;}}
! width="6%" | —C || width="6%" | —D
|{{chset-ctrl1| |{{Control code link|POC}}}}
! width="6%" | —E || width="6%" | —F
|{{chset-ctrl1|U+0018 CANCEL|{{Control code link|CAN}}}}
|{{chset-ctrl1|U+0019 END OF MEDIUM|&nbsp;{{Control code link|EM}}&nbsp;}}
|{{chset-ctrl1| |{{Control code link|UBS}}}}
|{{chset-ctrl1| |{{Control code link|CU1}}}}
|{{chset-ctrl1|U+001C INFORMATION SEPARATOR FOUR|&nbsp;{{Control code link|IFS}}}}
|{{chset-ctrl1|U+001D INFORMATION SEPARATOR THREE|&nbsp;{{Control code link|IGS}}}}
|{{chset-ctrl1|U+001E INFORMATION SEPARATOR TWO|&nbsp;{{Control code link|IRS}}}}
|{{chset-ctrl1|U+001F INFORMATION SEPARATOR ONE|{{Control code link|US|IUS}}/<br/>{{Control code link|IUS/ITB|ITB}}|style=line-height:1}}
|- |-
!{{chset-left|0}} |{{chset-left1|2x}}
|{{chset-ctrl1| |&nbsp;{{Control code link|DS}}&nbsp;}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0000|]|0}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0001|]|1}} |{{chset-ctrl1| |{{Control code link|EBCDIC:SOS}}}}
|{{chset-ctrl1| |&nbsp;{{Control code link|EBCDIC:FS}}&nbsp;}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0002|]|2}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0003|]|3}} |{{chset-ctrl1| |{{Control code link|WUS}}}}
|{{chset-ctrl1| |{{Control code link|BYP/INP|BYP/<br/>INP}}|style=line-height:1}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |SEL|4}}
|{{chset-ctrl1|U+000A LINE FEED (LF)|&nbsp;{{Control code link|LF}}&nbsp;}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0009|]|5}}
|{{chset-ctrl1|U+0017 END OF TRANSMISSION BLOCK|{{Control code link|ETB}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |RNL|6}}
|{{chset-color-ctrl}}|{{chset-ctrl3|007F|]|7}} |{{chset-ctrl1|U+001B ESCAPE|{{Control code link|ESC}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |GE|8}} |{{chset-ctrl1| |&nbsp;{{Control code link|SA}}&nbsp;}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |SPS|9}} |{{chset-ctrl1| |{{Control code link|SFE}}}}
|{{chset-ctrl1| |{{Control code link|SM/SW|&nbsp;SM/<br/>SW}}|style=line-height:1}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |RPT|10}}
|{{chset-color-ctrl}}|{{chset-ctrl3|000B|]|11}} |{{chset-ctrl1| |{{Control code link|CSP}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3|000C|]|12}} |{{chset-ctrl1| |{{Control code link|MFA}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3|000D|]|13}} |{{chset-ctrl1|U+0005 ENQUIRY|{{Control code link|ENQ}}}}
|{{chset-ctrl1|U+0006 ACKNOWLEDGE|{{Control code link|ACK}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3|000E|]|14}}
|{{chset-color-ctrl}}|{{chset-ctrl3|000F|]|15}} |{{chset-ctrl1|U+0007 BELL|{{Control code link|BEL}}}}
|- |-
!{{chset-left|1}} |{{chset-left1|3x}}
|{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0010|]|16}}
|{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0011|]|17}}
|{{chset-ctrl1|U+0016 SYNCHRONOUS IDLE|{{Control code link|SYN}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0012|]|18}}
|{{chset-ctrl1| |&nbsp;&nbsp;{{Control code link|IR}}&nbsp;}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0013|]|19}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |RES ENP|20}} |{{chset-ctrl1| |&nbsp;{{Control code link|PP}}&nbsp;}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |]|21}} |{{chset-ctrl1| |{{Control code link|TRN}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0008|]|22}} |{{chset-ctrl1| |{{Control code link|NBS}}}}
|{{chset-ctrl1|U+0004 END OF TRANSMISSION|{{Control code link|EOT}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |POC|23}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0018|]|24}} |{{chset-ctrl1| |{{Control code link|SBS}}}}
|{{chset-ctrl1| |&nbsp;&nbsp;{{Control code link|IT}}&nbsp;}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0019|]|25}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |UBS|26}} |{{chset-ctrl1| |{{Control code link|RFF}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |CU1|27}} |{{chset-ctrl1| |{{Control code link|CU3}}}}
|{{chset-ctrl1|U+0014 DEVICE CONTROL FOUR|{{Control code link|DC4}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3|001C|]|28}}
|{{chset-ctrl1|U+0015 NEGATIVE ACKNOWLEDGE|{{Control code link|NAK}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3|001D|]|29}}
|{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|001E|]|30}}
|{{chset-ctrl1|U+001A SUBSTITUTE|{{Control code link|SUB}}}}
|{{chset-color-ctrl}}|{{chset-ctrl3|001F|] ITB|31}}
|- |-
!{{chset-left|2}} |{{chset-left1|4x}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |DS|32}} |{{chset-ctrl1|U+0020 SPACE|&nbsp;]&nbsp;}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |SOS|33}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |FS|34}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |WUS|35}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |BYP INP|36}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|000A|]|37}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0017|]|38}}
|{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|001B|]|39}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |SA|40}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |SFE|41}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|U+00A2 CENT SIGN|]|74|style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |SM SW|42}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |CSP|43}} |{{chset-cell1|U+002E FULL STOP|]}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |MFA|44}} |{{chset-cell1|U+003C LESS-THAN SIGN|]}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0005|]|45}} |{{chset-cell1|U+0028 LEFT PARENTHESIS|]}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0006|]|46}} |{{chset-cell1|U+002B PLUS SIGN|]}}
|{{chset-cell1|U+007C VERTICAL LINE|]|79|style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0007|]|47}}
|- |-
!{{chset-left|3}} |{{chset-left1|5x}}
|{{chset-color-ctrl}}|{{chset-ctrl3| ||48}} |{{chset-cell1|U+0026 AMPERSAND|]}}
|{{chset-color-ctrl}}|{{chset-ctrl3| ||49}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0016|]|50}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |IR|51}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |PP|52}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |TRN|53}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |NBS|54}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0004|]|55}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |SBS|56}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |IT|57}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|U+0021 EXCLAMATION MARK|]|90|style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |RFF|58}}
|{{chset-cell1|U+0024 DOLLAR SIGN|]|91|style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3| |CU3|59}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0014|]|60}} |{{chset-cell1|U+002A ASTERISK|]}}
|{{chset-cell1|U+0029 RIGHT PARENTHESIS|]}}
|{{chset-color-ctrl}}|{{chset-ctrl3|0015|]|61}}
|{{chset-color-ctrl}}|{{chset-ctrl3| ||62}} |{{chset-cell1|U+003B SEMICOLON|]}}
|{{chset-cell1|U+00AC NOT SIGN|]|95|style=background:#DDD}}
|{{chset-color-ctrl}}|{{chset-ctrl3|001A|]|63}}
|- |-
!{{chset-left|4}} |{{chset-left1|6x}}
|{{chset-color-punct}}|{{chset-ctrl3|0020|]|64}} |{{chset-cell1|U+002D HYPHEN-MINUS|]}}
|{{chset-color-punct}}|{{chset-ctrl3|00A0|]|65}} |{{chset-cell1|U+002F SOLIDUS|]}}
| {{chset-cell3| | |66}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |67}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |68}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |69}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |70}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |71}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |72}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |73}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|U+00A6 BROKEN BAR|]|106|style=background:#DDD}}
| {{chset-cell3| | |74}}
|{{chset-color-punct}}|{{chset-cell3|002E|]|75}} |{{chset-cell1|U+002C COMMA|]}}
|{{chset-color-punct}}|{{chset-cell3|003C|]|76}} |{{chset-cell1|U+0025 PERCENT SIGN|]}}
|{{chset-color-punct}}|{{chset-cell3|0028|]|77}} |{{chset-cell1|U+005F LOW LINE|]}}
|{{chset-color-punct}}|{{chset-cell3|002B|]|78}} |{{chset-cell1|U+003E GREATER-THAN SIGN|]}}
|{{chset-cell1|U+003F QUESTION MARK|]}}
| {{chset-cell3|007C|]|79}}
|- |-
!{{chset-left|5}} |{{chset-left1|7x}}
|{{chset-color-punct}}|{{chset-cell3|0026|]|80}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |81}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |82}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |83}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |84}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |85}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |86}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |87}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |88}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|U+0060 GRAVE ACCENT|]|121|style=background:#DDD}}
| {{chset-cell3| | |89}}
| {{chset-cell3|0021|]|90}} |{{chset-cell1|U+003A COLON|]}}
|{{chset-cell1|U+0023 NUMBER SIGN|]|123|style=background:#DDD}}
| {{chset-cell3|0024|]|91}}
|{{chset-color-punct}}|{{chset-cell3|002A|]|92}} |{{chset-cell1|U+0040 COMMERCIAL AT|]|124|style=background:#DDD}}
|{{chset-color-punct}}|{{chset-cell3|0029|]|93}} |{{chset-cell1|U+0027 APOSTROPHE|]}}
|{{chset-color-punct}}|{{chset-cell3|003B|]|94}} |{{chset-cell1|U+003D EQUALS SIGN|]}}
| {{chset-cell3|00AC|]|95}} |{{chset-cell1|U+0022 QUOTATION MARK|]}}
|- |-
!{{chset-left|6}} |{{chset-left1|8x}}
|{{chset-color-punct}}|{{chset-cell3|002D|]|96}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3|002F|]|97}} |{{chset-cell1|U+0061 LATIN SMALL LETTER A|]}}
| {{chset-cell3| | |98}} |{{chset-cell1|U+0062 LATIN SMALL LETTER B|]}}
| {{chset-cell3| | |99}} |{{chset-cell1|U+0063 LATIN SMALL LETTER C|]}}
| {{chset-cell3| | |100}} |{{chset-cell1|U+0064 LATIN SMALL LETTER D|]}}
| {{chset-cell3| | |101}} |{{chset-cell1|U+0065 LATIN SMALL LETTER E|]}}
| {{chset-cell3| | |102}} |{{chset-cell1|U+0066 LATIN SMALL LETTER F|]}}
| {{chset-cell3| | |103}} |{{chset-cell1|U+0067 LATIN SMALL LETTER G|]}}
| {{chset-cell3| | |104}} |{{chset-cell1|U+0068 LATIN SMALL LETTER H|]}}
| {{chset-cell3| | |105}} |{{chset-cell1|U+0069 LATIN SMALL LETTER I|]}}
|{{chset-color-punct}}|{{chset-cell3|00A6|]|106}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-punct}}|{{chset-cell3|002C|]|107}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-punct}}|{{chset-cell3|0025|]|108}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-punct}}|{{chset-cell3|005F|]|109}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|||style=background:#DDD}}
|{{chset-color-punct}}|{{chset-cell3|003E|]|110}}
|{{chset-color-punct}}|{{chset-cell3|003F|]|111}} |{{chset-cell1|U+00B1 PLUS-MINUS SIGN|]|143|style=background:#DDD}}
|- |-
!{{chset-left|7}} |{{chset-left1|9x}}
| {{chset-cell3| | |112}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |113}} |{{chset-cell1|U+006A LATIN SMALL LETTER J|]}}
| {{chset-cell3| | |114}} |{{chset-cell1|U+006B LATIN SMALL LETTER K|]}}
| {{chset-cell3| | |115}} |{{chset-cell1|U+006C LATIN SMALL LETTER L|]}}
| {{chset-cell3| | |116}} |{{chset-cell1|U+006D LATIN SMALL LETTER M|]}}
| {{chset-cell3| | |117}} |{{chset-cell1|U+006E LATIN SMALL LETTER N|]}}
| {{chset-cell3| | |118}} |{{chset-cell1|U+006F LATIN SMALL LETTER O|]}}
| {{chset-cell3| | |119}} |{{chset-cell1|U+0070 LATIN SMALL LETTER P|]}}
| {{chset-cell3| | |120}} |{{chset-cell1|U+0071 LATIN SMALL LETTER Q|]}}
| {{chset-cell3|0060|]|121}} |{{chset-cell1|U+0072 LATIN SMALL LETTER R|]}}
|{{chset-cell1|||style=background:#DDD}}
|{{chset-color-punct}}|{{chset-cell3|003A|]|122}}
|{{chset-cell1|||style=background:#DDD}}
| |{{chset-cell3|0023|]|123}}
|{{chset-color-punct}}|{{chset-cell3|0040|]|124}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-punct}}|{{chset-cell3|0027|]|125}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-punct}}|{{chset-cell3|003D|]|126}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-punct}}|{{chset-cell3|0022|]|127}} |{{chset-cell1|||style=background:#DDD}}
|- |-
!{{chset-left|8}} |{{chset-left1|Ax}}
| {{chset-cell3| | |128}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|0061|''']'''|129}} |{{chset-cell1|U+007E TILDE|]|161|style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|0062|''']'''|130}} |{{chset-cell1|U+0073 LATIN SMALL LETTER S|]}}
|{{chset-color-alpha}}|{{chset-cell3|0063|''']'''|131}} |{{chset-cell1|U+0074 LATIN SMALL LETTER T|]}}
|{{chset-color-alpha}}|{{chset-cell3|0064|''']'''|132}} |{{chset-cell1|U+0075 LATIN SMALL LETTER U|]}}
|{{chset-color-alpha}}|{{chset-cell3|0065|''']'''|133}} |{{chset-cell1|U+0076 LATIN SMALL LETTER V|]}}
|{{chset-color-alpha}}|{{chset-cell3|0066|''']'''|134}} |{{chset-cell1|U+0077 LATIN SMALL LETTER W|]}}
|{{chset-color-alpha}}|{{chset-cell3|0067|''']'''|135}} |{{chset-cell1|U+0078 LATIN SMALL LETTER X|]}}
|{{chset-color-alpha}}|{{chset-cell3|0068|''']'''|136}} |{{chset-cell1|U+0079 LATIN SMALL LETTER Y|]}}
|{{chset-color-alpha}}|{{chset-cell3|0069|''']'''|137}} |{{chset-cell1|U+007A LATIN SMALL LETTER Z|]}}
| {{chset-cell3| | |138}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |139}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |140}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |141}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |142}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3|00B1|]|143}}
|- |-
!{{chset-left|9}} |{{chset-left1|Bx}}
|{{chset-cell1|U+005E CIRCUMFLEX ACCENT|]|176|style=background:#DDD}}
| {{chset-cell3| | |144}}
|{{chset-color-alpha}}|{{chset-cell3|006A|''']'''|145}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|006B|''']'''|146}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|006C|''']'''|147}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|006D|''']'''|148}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|006E|''']'''|149}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|006F|''']'''|150}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|0070|''']'''|151}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|0071|''']'''|152}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|0072|''']'''|153}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-cell1|U+005B LEFT SQUARE BRACKET|]|186|style=background:#DDD}}
| {{chset-cell3| | |154}}
|{{chset-cell1|U+005D RIGHT SQUARE BRACKET|]|187|style=background:#DDD}}
| {{chset-cell3| | |155}}
| {{chset-cell3| | |156}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |157}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |158}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |159}} |{{chset-cell1|||style=background:#DDD}}
|- |-
!{{chset-left|A}} |{{chset-left1|Cx}}
|{{chset-cell1|U+007B LEFT CURLY BRACKET|]|192|style=background:#DDD}}
| {{chset-cell3| | |160}}
| {{chset-cell3|007E|]|161}} |{{chset-cell1|U+0041 LATIN CAPITAL LETTER A|]}}
|{{chset-color-alpha}}|{{chset-cell3|0073|''']'''|162}} |{{chset-cell1|U+0042 LATIN CAPITAL LETTER B|]}}
|{{chset-color-alpha}}|{{chset-cell3|0074|''']'''|163}} |{{chset-cell1|U+0043 LATIN CAPITAL LETTER C|]}}
|{{chset-color-alpha}}|{{chset-cell3|0075|''']'''|164}} |{{chset-cell1|U+0044 LATIN CAPITAL LETTER D|]}}
|{{chset-color-alpha}}|{{chset-cell3|0076|''']'''|165}} |{{chset-cell1|U+0045 LATIN CAPITAL LETTER E|]}}
|{{chset-color-alpha}}|{{chset-cell3|0077|''']'''|166}} |{{chset-cell1|U+0046 LATIN CAPITAL LETTER F|]}}
|{{chset-color-alpha}}|{{chset-cell3|0078|''']'''|167}} |{{chset-cell1|U+0047 LATIN CAPITAL LETTER G|]}}
|{{chset-color-alpha}}|{{chset-cell3|0079|''']'''|168}} |{{chset-cell1|U+0048 LATIN CAPITAL LETTER H|]}}
|{{chset-color-alpha}}|{{chset-cell3|007A|''']'''|169}} |{{chset-cell1|U+0049 LATIN CAPITAL LETTER I|]}}
| {{chset-cell3| | |170}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |171}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |172}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |173}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |174}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |175}} |{{chset-cell1|||style=background:#DDD}}
|- |-
!{{chset-left|B}} |{{chset-left1|Dx}}
|{{chset-cell1|U+007D RIGHT CURLY BRACKET|]|208|style=background:#DDD}}
| {{chset-cell3|005E|]|176}}
| {{chset-cell3| | |177}} |{{chset-cell1|U+004A LATIN CAPITAL LETTER J|]}}
| {{chset-cell3| | |178}} |{{chset-cell1|U+004B LATIN CAPITAL LETTER K|]}}
| {{chset-cell3| | |179}} |{{chset-cell1|U+004C LATIN CAPITAL LETTER L|]}}
| {{chset-cell3| | |180}} |{{chset-cell1|U+004D LATIN CAPITAL LETTER M|]}}
| {{chset-cell3| | |181}} |{{chset-cell1|U+004E LATIN CAPITAL LETTER N|]}}
| {{chset-cell3| | |182}} |{{chset-cell1|U+004F LATIN CAPITAL LETTER O|]}}
| {{chset-cell3| | |183}} |{{chset-cell1|U+0050 LATIN CAPITAL LETTER P|]}}
| {{chset-cell3| | |184}} |{{chset-cell1|U+0051 LATIN CAPITAL LETTER Q|]}}
| {{chset-cell3| | |185}} |{{chset-cell1|U+0052 LATIN CAPITAL LETTER R|]}}
|{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3|005B|]|186}}
|{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3|005D|]|187}}
| {{chset-cell3| | |188}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |189}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |190}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |191}} |{{chset-cell1|||style=background:#DDD}}
|- |-
!{{chset-left|C}} |{{chset-left1|Ex}}
|{{chset-cell1|U+005C REVERSE SOLIDUS|]|224|style=background:#DDD}}
| {{chset-cell3|007B|]|192}}
|{{chset-color-alpha}}|{{chset-cell3|0041|''']'''|193}} |{{chset-cell1|||style=background:#DDD}}
|{{chset-color-alpha}}|{{chset-cell3|0042|''']'''|194}} |{{chset-cell1|U+0053 LATIN CAPITAL LETTER S|]}}
|{{chset-color-alpha}}|{{chset-cell3|0043|''']'''|195}} |{{chset-cell1|U+0054 LATIN CAPITAL LETTER T|]}}
|{{chset-color-alpha}}|{{chset-cell3|0044|''']'''|196}} |{{chset-cell1|U+0055 LATIN CAPITAL LETTER U|]}}
|{{chset-color-alpha}}|{{chset-cell3|0045|''']'''|197}} |{{chset-cell1|U+0056 LATIN CAPITAL LETTER V|]}}
|{{chset-color-alpha}}|{{chset-cell3|0046|''']'''|198}} |{{chset-cell1|U+0057 LATIN CAPITAL LETTER W|]}}
|{{chset-color-alpha}}|{{chset-cell3|0047|''']'''|199}} |{{chset-cell1|U+0058 LATIN CAPITAL LETTER X|]}}
|{{chset-color-alpha}}|{{chset-cell3|0048|''']'''|200}} |{{chset-cell1|U+0059 LATIN CAPITAL LETTER Y|]}}
|{{chset-color-alpha}}|{{chset-cell3|0049|''']'''|201}} |{{chset-cell1|U+005A LATIN CAPITAL LETTER Z|]}}
|{{chset-color-punct}}|{{chset-ctrl3|00AD|]|202}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |203}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |204}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |205}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |206}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |207}} |{{chset-cell1|||style=background:#DDD}}
|- |-
!{{chset-left|D}} |{{chset-left1|Fx}}
|{{chset-cell1|U+0030 DIGIT ZERO|]}}
| {{chset-cell3|007D|]|208}}
|{{chset-color-alpha}}|{{chset-cell3|004A|''']'''|209}} |{{chset-cell1|U+0031 DIGIT ONE|]}}
|{{chset-color-alpha}}|{{chset-cell3|004B|''']'''|210}} |{{chset-cell1|U+0032 DIGIT TWO|]}}
|{{chset-color-alpha}}|{{chset-cell3|004C|''']'''|211}} |{{chset-cell1|U+0033 DIGIT THREE|]}}
|{{chset-color-alpha}}|{{chset-cell3|004D|''']'''|212}} |{{chset-cell1|U+0034 DIGIT FOUR|]}}
|{{chset-color-alpha}}|{{chset-cell3|004E|''']'''|213}} |{{chset-cell1|U+0035 DIGIT FIVE|]}}
|{{chset-color-alpha}}|{{chset-cell3|004F|''']'''|214}} |{{chset-cell1|U+0036 DIGIT SIX|]}}
|{{chset-color-alpha}}|{{chset-cell3|0050|''']'''|215}} |{{chset-cell1|U+0037 DIGIT SEVEN|]}}
|{{chset-color-alpha}}|{{chset-cell3|0051|''']'''|216}} |{{chset-cell1|U+0038 DIGIT EIGHT|]}}
|{{chset-color-alpha}}|{{chset-cell3|0052|''']'''|217}} |{{chset-cell1|U+0039 DIGIT NINE|]}}
| {{chset-cell3| | |218}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |219}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |220}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |221}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |222}} |{{chset-cell1|||style=background:#DDD}}
| {{chset-cell3| | |223}} |{{chset-ctrl1| |&nbsp;{{Control code link|EO}}&nbsp;}}
|}

== Definitions of non-ASCII EBCDIC controls ==
Following are the definitions of EBCDIC control characters which either do not map onto the ], or have additional uses. When mapped to Unicode, these are mostly mapped to C1 control character codepoints in a manner specified by IBM's Character Data Representation Architecture (CDRA).<ref name="utr16cdra">{{cite web|url=https://www.unicode.org/reports/tr16/tr16-6.html#Step%202 |title=3.3 Step 2: Byte Conversion |work=UTF-EBCDIC |id=Unicode Technical Report #16 |last1=Umamaheswaran |first1=V.S. |publisher=] |date=1999-11-08 |quotation=The 64 control characters...the ASCII DELETE character (U+007F)...are mapped respecting EBCDIC conventions, as defined in IBM Character Data Representation Architecture, CDRA, with one exception -- the pairing of EBCDIC Line Feed and New Line control characters are swapped from their CDRA default pairings to ISO/IEC 6429 Line Feed (U+000A) and Next Line (U+0085) control characters}}</ref><ref name="ms037">{{cite web|url=https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/EBCDIC/CP037.TXT |title=cp037_IBMUSCanada to Unicode table |last1=Steele |first1=Shawn |publisher=]/] |date=1996-04-24}}</ref>

Although the default mapping of New Line (NL) corresponds to the ISO/IEC 6429 Next Line (NEL) character (the behaviour of which is also specified, but not required, in Unicode Annex 14),<ref>{{cite web|url=http://www.unicode.org/reports/tr14/tr14-43.html#NL |version=Revision 43 |title=NL: Next Line (A) (Non-tailorable) |work=Unicode Line Breaking Algorithm |id=Unicode Standard Annex #14 |date=2019-02-15 |first1=Andy |last1=Heninger |publisher=]}}</ref> most of these C1-mapped controls match neither those in the ], nor those in other registered C1 control sets such as ].<ref>{{cite iso-ir|number=124 |title=Additional Control Functions for Bibliographic Use according to International Standard ISO 6630 |sponsor=ISO/TC 46 |date=1986-02-01}}</ref> Although this effectively makes the non-ASCII EBCDIC controls a unique C1 control set, they are not among the C1 control sets registered in the ] registry,<ref>{{citation|title=ISO/IEC International Register of Coded Character Sets To Be Used With Escape Sequences |id=ISO-IR |publisher=ITSCJ/] |url=https://itscj.ipsj.or.jp/english/vbcqpr00000004qn-att/ISO-IR.pdf}}</ref> meaning that they do not have an assigned control set designation sequence (as specified by ], and optionally permitted in ] (Unicode)).<ref>{{citation|mode=cs1 |id=ISO/IEC 10646 |title=Information technology — Universal Coded Character Set (UCS) |author=ISO/IEC JTC 1/SC 2 |author-link=ISO/IEC JTC 1/SC 2 |publisher=] |edition=5th |year=2017 |url=https://standards.iso.org/ittf/PubliclyAvailableStandards/c069119_ISO_IEC_10646_2017.zip |section=12.4: Identification of control function set |pages=19–20 |quotation=For other C0 or C1 sets, the final octet F shall be obtained from the International Register of Coded Character Sets....If such an escape sequence appears within a code unit sequence conforming to this International Standard, it shall be padded in accordance with Clause 11.}}</ref>

Besides U+0085 (Next Line), the Unicode Standard does not prescribe an interpretation of C1 control characters, leaving their interpretation to higher level protocols (it suggests, but does not require, their ISO/IEC 6429 interpretations in the absence of use for other purposes),<ref>{{cite book|url=https://www.unicode.org/versions/Unicode12.0.0/ch23.pdf#page=3 |chapter=23.1: Control Codes |title=The Unicode Standard |edition=12.0.0 |date=2019 |author=Unicode Consortium |author-link=Unicode Consortium |isbn=978-1-936213-22-1 |pages=868–870}}</ref> so this mapping is permissible in, but not specified by, Unicode.
{|class="wikitable sortable"
|-
! Mnemonic !! EBCDIC !! CDRA pairing<ref name="utr16cdra" /><ref name="ms037"/> !!class="unsortable"| Name !!class="unsortable"| Description<ref name="IBM_G-1"/>
|- id = "SEL"
| SEL ||data-sort-value="4" rowspan=2| 04 ||data-sort-value="156" rowspan=2| 009C || Select || Device control character taking a single-byte parameter.
|- id = "PF"
| PF || Punch Off || Listed in this location by ].<ref name="gost19768"/>
|- id = "RNL"
| RNL ||data-sort-value="6" rowspan=2| 06 ||data-sort-value="134" rowspan=2| 0086 || Required New Line || Line-break resetting {{Control code link|internal=1|IT|Indent Tab}} mode
|- id = "LC"
| LC || Lower Case || Listed in this location by ].<ref name="gost19768"/>
|- id = "GE"
| GE ||data-sort-value="8"| 08 ||data-sort-value="151"| 0097 || Graphic Escape || Non-locking shift that changes the interpretation of the following character (see e.g. ]). Compare ISO/IEC 6429's {{Control code link|SS2}} (008E).
|- id = "SPS"
| SPS ||data-sort-value="9"| 09 ||data-sort-value="141"| 008D || Superscript || Begin superscript or undo subscript. Compare ISO/IEC 6429's {{Control code link|PLU}} (008C).
|- id = "RPT"
| RPT ||data-sort-value="10" rowspan=2| 0A ||data-sort-value="142" rowspan=2| 008E || Repeat || Switch to an operation mode repeating a print buffer
|- id = "SMM"
| SMM || Start of Manual Message || Listed in this location by ].<ref name="gost19768"/>
|- id = "RES/ENP"
| RES/ENP ||data-sort-value="20"| 14 ||data-sort-value="157"| 009D || Restore, Enable Presentation || Resume output (after {{Control code link|internal=1|BYP/INP}})
|- id = "NL"
| NL ||data-sort-value="21"| 15 ||data-sort-value="133"| 0085 (000A) || ] || Line break. Default mapping (0085) matches ISO/IEC 6429's {{Control code link|NEL}}. Mappings sometimes swapped with Line Feed (EBCDIC 0x25) in accordance with UNIX line breaking convention.<ref name="utr16cdra" />
|- id = "POC"
| POC ||data-sort-value="23" rowspan=2| 17 ||data-sort-value="135" rowspan=2| 0087 || Program Operator Communication || Followed by two one-byte operators that identify the specific function, for example a light or function key. Contrast with ISO/IEC 6429's {{Control code link|CSI}} (009B), {{Control code link|ANSI:OSC}} (009D) and {{Control code link|APC}} (009F).
|- id = "IL"
| IL || Idle || Listed in this location by ].<ref name="gost19768"/>
|- id = "UBS"
| UBS ||data-sort-value="26" rowspan=2| 1A ||data-sort-value="146" rowspan=2| 0092 || Unit Backspace || A fractional backspace.
|- id = "CC"
| CC || Cursor Control || Listed in this location by ].<ref name="gost19768"/>
|- id = "CU1"
| CU1 ||data-sort-value="27"| 1B ||data-sort-value="143"| 008F || Customer Use One || Not used by IBM; for customer use.
|- id = "IUS/ITB"
| IUS/ITB ||data-sort-value="31"| 1F ||data-sort-value="31"| 001F || Interchange Unit Separator, Intermediate Transmission Block || Either used as an information separator to terminate a block called a "unit" (as ]; see also {{Control code link|internal=1|IR}}), or used as a transmission control code to delimit the end of an intermediate block.
|- id = "DS"
| DS ||data-sort-value="32"| 20 ||data-sort-value="128"| 0080 || Digit Select || Used by S/360 CPU edit (ED) instruction
|- id = "SOS"
| SOS ||data-sort-value="33"| 21 ||data-sort-value="129"| 0081 || Start of Significance || Used by S/360 CPU edit (ED) instruction. (Note: different from ISO/IEC 6429's {{Control code link|ANSI:SOS}}; where distinguishing them is necessary, IBM abbreviates Start of Significance as {{code|SOS.}} (with a dot) and Start of String as {{code|SOS}}, otherwise they are abbreviated the same.)<ref>{{cite web |url=https://www.ibm.com/downloads/cas/G01BQVRV#page=327 |page=327 |title=Character Data Representation Architecture (CDRA) |author=IBM |website=] |author-link=IBM |quotation=The mnemonic for the Start of Significance control character in EBCDIC has been modified to include a dot (.) at the end (SOS.). This has been done to distinguish it from the SOS mnemonic used in ISO-8 for the Start of String control character. The dot does not alter the property of the control in any way.}}</ref>
|- id = "FS"
| FS,<ref name="IBM_G-1"/> FDS<ref name="gost19768"/> ||data-sort-value="34"| 22 ||data-sort-value="130"| 0082 || Field Separator || Used by S/360 CPU edit (ED) instruction. (Note: {{Control code link|IFS|(Interchange) File Separator}}, as abbreviated FS in ASCII, is at 0x1C and abbreviated IFS.)<ref name="IBM_G-1"/>
|- id = "WUS"
| WUS ||data-sort-value="35"| 23 ||data-sort-value="131"| 0083 || Word Underscore || Underscores the immediately preceding word. Contrast with ISO/IEC 6429's ].
|- id = "BYP/INP"
| BYP/INP ||data-sort-value="36"| 24 ||data-sort-value="132"| 0084 || Bypass, Inhibit Presentation || De-activates output, i.e. ignores all graphical characters and control characters besides transmission control codes and RES/ENP, until the next {{Control code link|internal=1|RES/ENP}}.
|- id = "SA"
| SA ||data-sort-value="40"| 28 ||data-sort-value="136"| 0088 || Set Attribute || Marks the beginning of a fixed-length device specific control sequence. Deprecated in favour of {{Control code link|internal=1|CSP}}.
|- id = "SFE"
| SFE ||data-sort-value="41"| 29 ||data-sort-value="137"| 0089 || Start Field Extended || Marks the beginning of a variable-length device specific control sequence. Deprecated in favour of {{Control code link|internal=1|CSP}}.
|- id = "SM/SW"
| SM/SW ||data-sort-value="42"| 2A ||data-sort-value="138"| 008A || Set Mode, Switch || Device specific control that sets a mode of operation, such as a buffer switch.
|- id = "CU2"
| CU2 ||data-sort-value="43" rowspan=2| 2B ||data-sort-value="139" rowspan=2| 008B || Customer Use Two || This appears in some specifications, such as ];<ref name="gost19768">{{cite web |language=ru |id=GOST 19768-93 |date=1993 |author=] |url=http://docs.cntd.ru/document/gost-19768-93 |title=Информационная технология. Наборы 8-битных кодированных символов. Двоичный код обработки информации|trans-title=Information technology. 8-bit coded character sets. Binary code for information processing}}</ref> newer IBM specifications for EBCDIC control codes list only CU1 and CU3 as customer-use, and use this position for {{ctrl|CSP|internal=1}}.<ref name="IBM_G-1"/>
|- id = "CSP"
| CSP || Control Sequence Prefix || Marks the beginning of a variable-length device specific control sequence. Followed by a class byte specifying a category of control function, a count byte giving the sequence length (including count and type bytes, but not the class byte or initial CSP), a type byte identifying a control function within that category, and zero or more parameter bytes. Contrast with ISO/IEC 6429's {{Control code link|DCS}} (0090) and {{Control code link|CSI}} (009B).
|- id = "MFA"
| MFA ||data-sort-value="44"| 2C ||data-sort-value="140"| 008C || Modify Field Attribute || Marks the beginning of a variable-length device specific control sequence. Deprecated in favour of {{Control code link|internal=1|CSP}}.
|- |-
| ||data-sort-value="48"| 30 ||data-sort-value="144"| 0090 || ''(reserved)'' || Reserved for future use by IBM
!{{chset-left|E}}
| {{chset-cell3|005C|]|224}}
| {{chset-cell3| | |225}}
|{{chset-color-alpha}}|{{chset-cell3|0053|''']'''|226}}
|{{chset-color-alpha}}|{{chset-cell3|0054|''']'''|227}}
|{{chset-color-alpha}}|{{chset-cell3|0055|''']'''|228}}
|{{chset-color-alpha}}|{{chset-cell3|0056|''']'''|229}}
|{{chset-color-alpha}}|{{chset-cell3|0057|''']'''|230}}
|{{chset-color-alpha}}|{{chset-cell3|0058|''']'''|231}}
|{{chset-color-alpha}}|{{chset-cell3|0059|''']'''|232}}
|{{chset-color-alpha}}|{{chset-cell3|005A|''']'''|233}}
| {{chset-cell3| | |234}}
| {{chset-cell3| | |235}}
| {{chset-cell3| | |236}}
| {{chset-cell3| | |237}}
| {{chset-cell3| | |238}}
| {{chset-cell3| | |239}}
|- |-
| ||data-sort-value="49"| 31 ||data-sort-value="145"| 0091 || ''(reserved)'' || Reserved for future use by IBM
!{{chset-left|F}}
|- id = "IR"
|{{chset-color-digit}}|{{chset-cell3|0030|''']'''|240}}
| IR ||data-sort-value="51"| 33 ||data-sort-value="147"| 0093 || Index Return || Either move to start of next line (see also {{Control code link|internal=1|NL}}), or terminate an information unit (see also {{Control code link|internal=1|IUS/ITB}}).
|{{chset-color-digit}}|{{chset-cell3|0031|''']'''|241}}
|- id = "PP"
|{{chset-color-digit}}|{{chset-cell3|0032|''']'''|242}}
| PP ||data-sort-value="52" rowspan=2| 34 ||data-sort-value="148" rowspan=2| 0094 || Presentation Position || Followed by two one-byte parameters (firstly function, secondly number of either column or line) to set the current position.<!-- Is there any publicly available documentation, or at least source code, giving more detail on this parameter format? --> Contrast with ISO/IEC 6429's ].
|{{chset-color-digit}}|{{chset-cell3|0033|''']'''|243}}
|- id = "PN"
|{{chset-color-digit}}|{{chset-cell3|0034|''']'''|244}}
| PN || Punch On || Listed in this location by ].<ref name="gost19768"/>
|{{chset-color-digit}}|{{chset-cell3|0035|''']'''|245}}
|- id = "TRN"
|{{chset-color-digit}}|{{chset-cell3|0036|''']'''|246}}
| TRN ||data-sort-value="53" rowspan=2| 35 ||data-sort-value="149" rowspan=2| 0095 || Transparent || Followed by one byte parameter that indicates the number of bytes of transparent data that follow.
|{{chset-color-digit}}|{{chset-cell3|0037|''']'''|247}}
|- id = "RST"
|{{chset-color-digit}}|{{chset-cell3|0038|''']'''|248}}
| RST || Reader Stop || Listed in this location by ].<ref name="gost19768"/>
|{{chset-color-digit}}|{{chset-cell3|0039|''']'''|249}}
|- id = "NBS"
| {{chset-cell3| | |250}}
| NBS ||data-sort-value="54" rowspan=2| 36 ||data-sort-value="150" rowspan=2| 0096 || Numeric Backspace || Move backward the width of one digit.
| {{chset-cell3| | |251}}
|- id = "UC"
| {{chset-cell3| | |252}}
| UC || Upper Case || Listed in this location by ].<ref name="gost19768"/>
| {{chset-cell3| | |253}}
|- id = "SBS"
| {{chset-cell3| | |254}}
| SBS ||data-sort-value="56"| 38 ||data-sort-value="152"| 0098 || Subscript || Begin subscript or undo superscript. Compare ISO/IEC 6429's {{Control code link|PLD}} (008B).
|{{chset-color-ctrl}} |{{chset-ctrl3| |]|255}}
|- id = "IT"
| IT ||data-sort-value="57"| 39 ||data-sort-value="153"| 0099 || Indent Tab || Indents the current and all following lines, until {{Control code link|internal=1|RNL}} or {{Control code link|internal=1|RFF}} is encountered.
|- id = "RFF"
| RFF ||data-sort-value="58"| 3A ||data-sort-value="154"| 009A || Required Form Feed || Page-break resetting {{Control code link|internal=1|IT|Indent Tab}} mode.
|- id = "CU3"
| CU3 ||data-sort-value="59"| 3B ||data-sort-value="155"| 009B || Customer Use Three || Not used by IBM; for customer use.
|- |-
| ||data-sort-value="62"| 3E ||data-sort-value="158"| 009E || ''(reserved)'' || Reserved for future use by IBM
||
|- id = "EO"
!—0||—1||—2||—3||—4||—5||—6||—7||—8||—9||—A||—B||—C||—D||—E||—F
| EO ||data-sort-value="255"| FF ||data-sort-value="159"| 009F || ] || All ones character used as filler
|}

== {{anchor|CECP}}Code pages with Latin-1 character sets ==
The following code pages have the full ] (ISO/IEC 8859-1). The first column gives the original code page number. The second column gives the number of the code page updated with the ] (€) replacing the universal ] (¤) (or in the case of EBCDIC 924, with the set changed to match ])

Different countries have different code pages because these code pages originated as code pages with country-specific character repertoires, and were later expanded to contain the entire ISO 8859-1 repertoire, meaning that a given ISO 8859-1 character may have different ] values in different code pages. They are known as '''Country Extended Code Pages''' ('''CECP'''s).<ref name="columbia">{{cite web |url=http://www.columbia.edu/kermit/ftp/charsets/iso8859.txt |title=iso8859.txt |publisher=] / ]}}</ref>

{| class="wikitable"
|-----
! ]
! Euro<br />update
! Countries
|-----
| 037 || 1140 || Australia, Brazil, Canada, New Zealand, Portugal, South Africa, USA
|-----
| 273 || 1141 || Austria, Germany
|-----
| 277 || 1142 || Denmark, Norway
|-----
| 278 || 1143 || Finland, Sweden
|-----
| 280 || 1144 || Italy
|-----
| 284 || 1145 || Latin America, Spain
|-----
| 285 || 1146 || Ireland, United Kingdom
|-----
| 297 || 1147 || France
|-----
| 500 || 1148 || International
|-----
| 871 || 1149 || Iceland
|-----
| 1047 || 924 || Open Systems (] ] compiler)
|} |}


== Criticism and humor == == Criticism and humor ==
{{Self-contradictory|othersection|date=May 2024}}
] advocate and hacker ] writes in his '']'' that EBCDIC was almost universally loathed by early hackers and programmers because of its multitude of different versions, none of which resembled the other versions, and that IBM produced it in direct competition with the already-established ASCII.
] advocate and software developer ] writes in his '']'' that EBCDIC was loathed by hackers, by which he meant<ref>{{cite web|url=http://manybooks.net/titles/anonetext02jarg422.html|title=The New Hacker's Dictionary|last=Raymond|first=Eric S.|year=1997|author-link=Eric S. Raymond|page=310}}</ref> members of a subculture of enthusiastic programmers. The Jargon File 4.4.7 gives the following definition:<ref name="CATB"/>
{{Blockquote|text = EBCDIC: /eb´s@·dik/, /eb´see`dik/, /eb´k@·dik/, n.
An alleged character set used on IBM dinosaurs. It exists in at least six mutually incompatible versions, all featuring such delights as non-contiguous letter sequences and the absence of several ASCII punctuation characters fairly important for modern computer languages (exactly which characters are absent varies according to which version of EBCDIC you're looking at). IBM adapted EBCDIC from punched card code in the early 1960s and promulgated it as a customer-control tactic (see '']''), spurning the already established ASCII standard. Today, IBM claims to be an ]s company, but IBM's own description of the EBCDIC variants and how to convert between them is still internally classified top-secret, burn-before-reading. Hackers blanch at the very ''name'' of EBCDIC and consider it a manifestation of purest evil.
|source=The Jargon file 4.4.7}}<!-- Public domain: -->


EBCDIC design was also the source of many jokes. One such joke, found in the Unix ] file of ] Reno (1990)<ref>{{citation|url=https://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/share/games/fortune/fortunes|title=4.3BSD-Reno/share/games/fortune/fortunes}}</ref> went:
The Jargon file 4.4.7 gives the following definition:
{{Blockquote|text = ''Professor: "So the American government went to IBM to come up with an ], and they came up with&mdash;"<br/>Student: "EBCDIC!"''}}
{{cquote2|quotetext=EBCDIC: /eb´s@·dik/, /eb´see`dik/, /eb´k@·dik/, n.
An alleged character set used on IBM dinosaurs. It exists in at least six mutually incompatible versions, all featuring such delights as non-contiguous letter sequences and the absence of several ASCII punctuation characters fairly important for modern computer languages (exactly which characters are absent varies according to which version of EBCDIC you're looking at). IBM adapted EBCDIC from punched card code in the early 1960s and promulgated it as a customer-control tactic (see '']''), spurning the already established ASCII standard. Today, IBM claims to be an ] company, but IBM's own description of the EBCDIC variants and how to convert between them is still internally classified top-secret, burn-before-reading. Hackers blanch at the very name of EBCDIC and consider it a manifestation of purest evil.
|quotesource=The Jargon file 4.4.7}}
<!-- Claims to be public domain: -->


References to the EBCDIC character set are made in the 1979 computer game series '']''. In the "Machine Room" in '']'', EBCDIC is used to imply an incomprehensible language:
Another popular complaint is that the EBCDIC alphabetic characters follow an archaic punch card encoding rather than a linear ordering like ASCII. The upshot of this is that incrementing the character code for "I" does not produce the code for "J", and likewise there is a gap between the codes for "R" and "S". Thus programming a simple ] to cycle through only the alphabetic characters is problematic.
{{Blockquote|text = This is a large room full of assorted heavy machinery, whirring noisily. The room smells of burned resistors. Along one wall are three buttons which are, respectively, round, triangular, and square. Naturally, above these buttons are instructions written in EBCDIC...}}


In 2021, it became public that a Belgian bank was still using EBCDIC internally in 2019. A customer insisted that the correct spelling of his surname included an ], which the bank omitted, and the customer filed a complaint citing the guarantee in the ] of the right to timely "rectification of inaccurate personal data." The bank's argument included the fact that their system used EBCDIC, as well as that it did not support letters with ] (or lower case, for that matter). The appeals court ruled in favor of the customer.<ref>{{cite web| url = https://gdprhub.eu/index.php?title=Court_of_Appeal_of_Brussels_-_2019/AR/1006| title = Court of Appeal of Brussels - 2019/AR/1006 - GDPRhub}}</ref><ref>{{cite web |last=Eden |first=Terence |author-link=Terence Eden |date=25 October 2021 |title=EBCDIC is incompatible with GDPR – Terence Eden's Blog |url=https://shkspr.mobi/blog/2021/10/ebcdic-is-incompatible-with-gdpr/}}</ref>
These incompatibilities were also the source of many jokes. A popular one went:
:''Professor: "So the American government went to IBM to come up with an ] standard, and they came up with&mdash;"<br/>Student: "EBCDIC!"''


== See also == == See also ==
* ] * ]
* ]
* ]


==Sources== == References ==
{{Reflist}} {{Reflist|refs=
<ref name="Mackenzie_1980">{{cite book|title=Coded Character Sets, History and Development |series=The Systems Programming Series |author-last=Mackenzie |author-first=Charles E. |year=1980 |edition=1 |publisher=] |isbn=0-201-14460-3 |lccn=77-90165 |url=https://textfiles.meulie.net/bitsaved/Books/Mackenzie_CodedCharSets.pdf |access-date=2022-04-06}}</ref>


<ref name="Bemer_P-Bit">{{cite web|author-last=Bemer |author-first=Bob |author-link=Bob Bemer |title=EBCDIC and the P-Bit (The Biggest Computer Goof Ever) - Computer History Vignettes |url=http://www.bobbemer.com/P-BIT.HTM |access-date=2013-07-02 |url-status=dead |archive-url=https://web.archive.org/web/20180513204153/http://www.bobbemer.com/P-BIT.HTM |archive-date=13 May 2018 |quote=...but their printers and punches were not ready to handle ASCII, and IBM just HAD to announce.}}</ref>
== External links ==
<!-- {{wikisource}} -->
* character list, including decimal and hex values, symbolic name, and character/function
* Contains IBM's official information on codepages and charsets.
* from
* Contains more information about EBCDIC, including DBCS EBCDIC (Double Byte Character Set EBCDIC)
* Contains Unicode mapping tables for EBCDIC and many other character sets
*
*
*
* Online tool to convert from ASCII to/from EBCDIC
*


<ref name="SR-IX">{{cite web|url=https://www.sr-ix.com/Archive/CharCodeHist/X3.4-1963/page4.JPG |title=X3.4-1963 |page=4 |date=1963}} (NB. IBM had four staff members on the final 21-member ASA X3.2 sub-committee.)</ref>
{{character encoding}}

<ref name="ibmebcdic">{{cite web|url=http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=%2Fcom.ibm.zos.r9.adms700%2Fadms7a05158.htm |title=IBM confirms the use of EBCDIC in their mainframes as a default practice |date=2008 |access-date=2008-06-16 |author=IBMnt |archive-date=2013-01-03 |archive-url=https://archive.today/20130103091717/http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.adms700/adms7a05158.htm |url-status=dead}}</ref>

<ref name="CATB">{{cite web|url=http://catb.org/jargon/html/E/EBCDIC.html |access-date=2018-05-13 |url-status=live |title=EBCDIC |work=] |archive-url=https://web.archive.org/web/20180513205203/http://catb.org/jargon/html/E/EBCDIC.html |archive-date=2018-05-13}}</ref>

<ref name="IBM_G-1">{{cite web|publisher=] |title=Appendix G-1. EBCDIC control character definitions |url=https://www-01.ibm.com/software/globalization/cdra/appendix_g1.html |work=Character Data Representation Architecture |archive-url=https://web.archive.org/web/20180911044845/https://www-01.ibm.com/software/globalization/cdra/appendix_g1.html |archive-date=2018-09-11|url-status=dead}}</ref>
}}

== External links ==
* IBM-related:
** {{webarchive |url=https://web.archive.org/web/20180513205355/https://www-01.ibm.com/software/globalization/g11n-res.html |date=2018-05-13 |title=Character Data Representation Architecture (CDRA) from IBM}}. Contains IBM's official information on code pages and character sets.
*** {{webarchive |url=https://web.archive.org/web/20150619065737/http://www-01.ibm.com/software/globalization/cp/cp00037.html |title=Code page 37 |date=2015-06-19}}
*** {{webarchive |url=https://web.archive.org/web/20150607033635/http://www-01.ibm.com/software/globalization/cp/cp01047.html |title=Code page 1047 |date=2015-06-07}}
** from IBM, shows code charts for several single-byte IBM EBCDIC pages.
** Contains more information about EBCDIC derived from IBM's CDRA, including DBCS EBCDIC (Double Byte Character Set EBCDIC)
** {{cite web|url=https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/nls/rbagscodepages.htm|title=Code Pages|website=] }} from {{cite web|url=https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/nls/rbagsglobalmain.htm|title=IBM i globalization|website=] }}
* , shows code charts for several single-byte ]/] (as opposed to IBM) EBCDIC pages used on the ].
* {{Webarchive|url=https://web.archive.org/web/20160303222819/http://www.hansenb.pdx.edu/DMKB/dict/tutorials/ebcdic.php |title= EBCDIC character list, including decimal and hex values, symbolic name, and character/function |date=2016-03-03}}
* {{Webarchive|url=https://web.archive.org/web/20180418175635/http://wzwz.de/prog/ebcdic/cc_en.htm |title=EBCDIC-code pages with Latin-1-charset (JavaScript) |date=2018-04-18}}
* {{webarchive|url=https://web.archive.org/web/20160827044130/http://mainframe.wiki/ebcdicTbl.php|title=All EBCDIC code pages and 3270 graphics escape codes|date=August 27, 2016}}
* Contains computer readable Unicode mapping tables for EBCDIC and many other character sets


] {{Character encodings}}
]


]
]
] ]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]

Latest revision as of 23:31, 26 December 2024

Eight-bit character encoding system invented by IBM
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "EBCDIC" – news · newspapers · books · scholar · JSTOR (January 2019) (Learn how and when to remove this message)

EBCDIC encoding family
Classification8-bit basic Latin encodings (non‑ASCII)
Preceded byBCD

Extended Binary Coded Decimal Interchange Code (EBCDIC; /ˈɛbsɪdɪk/) is an eight-bit character encoding used mainly on IBM mainframe and IBM midrange computer operating systems. It descended from the code used with punched cards and the corresponding six-bit binary-coded decimal code used with most of IBM's computer peripherals of the late 1950s and early 1960s. It is supported by various non-IBM platforms, such as Fujitsu-Siemens' BS2000/OSD, OS-IV, MSP, and MSP-EX, the SDS Sigma series, Unisys VS/9, Unisys MCP and ICL VME.

History

Punched card with the Hollerith encoding of the 1964 EBCDIC character set. Contrast at the top is enhanced to show the printed characters. The "number" punches (0–9) directly translate to the lower 4 bits of EBCDIC, though the upper 4 bits of EBCDIC are more complex.

EBCDIC was devised in 1963 and 1964 by IBM and was announced with the release of the IBM System/360 line of mainframe computers. It is an eight-bit character encoding, developed separately from the seven-bit ASCII encoding scheme. It was created to extend the existing Binary-Coded Decimal (BCD) Interchange Code, or BCDIC, which itself was devised as an efficient means of encoding the two zone and number punches on punched cards into six bits. The distinct encoding of 's' and 'S' (using position 2 instead of 1) was maintained from punched cards where it was desirable not to have hole punches too close to each other to ensure the integrity of the physical card.

While IBM was a chief proponent of the ASCII standardization committee, the company did not have time to prepare ASCII peripherals (such as card punch machines) to ship with its System/360 computers, so the company settled on EBCDIC. The System/360 became wildly successful, together with clones such as RCA Spectra 70, ICL System 4, and Fujitsu FACOM, thus so did EBCDIC.

All IBM's mainframe operating systems, and its IBM i operating system for midrange computers, use EBCDIC as their inherent encoding (with toleration for ASCII, for example, ISPF in z/OS can browse and edit both EBCDIC and ASCII encoded files). Software can translate to and from encodings, and modern mainframes (such as IBM Z) include processor instructions, at the hardware level, to accelerate translation between character sets. Modern z/OS compilers for the C and C++ languages on IBM Z mainframes, and earlier OS/390 C and C++ compilers on IBM System/390 mainframes, support a POSIX-compatible execution environment that makes use of ASCII by default.

Not all operating systems running on IBM hardware use EBCDIC; IBM AIX, Linux on IBM Z, and Linux on Power all use ASCII, as do all operating systems that run on the IBM Personal Computer and its successors.

Compatibility with ASCII

This section needs additional citations for verification. Please help improve this article by adding citations to reliable sources in this section. Unsourced material may be challenged and removed. (November 2022) (Learn how and when to remove this message)

There were numerous difficulties to writing software that would work in both ASCII and EBCDIC.

  • The gaps between letters made simple code that worked in ASCII fail on EBCDIC. For example for (c = 'A'; c <= 'Z'; ++c) putchar(c); would print the alphabet from A to Z if ASCII is used, but print 41 characters (including a number of unassigned ones) in EBCDIC.
  • Sorting EBCDIC put lowercase letters before uppercase letters and letters before numbers, exactly the opposite of ASCII.
  • Most programming languages and file formats and network protocols designed for ASCII used available punctuation marks (such as the curly braces { and }) that did not exist in EBCDIC, making translation to EBCDIC systems difficult. Workarounds such as trigraphs were used. Conversely EBCDIC had a few characters such as ¢ (US cent) that were used on IBM systems and could not be translated to ASCII.
  • The most common newline convention used with EBCDIC is to use a NEL (NEXT LINE) code between lines. Converters to other encodings often replace NEL with LF or CR/LF, even if there is a NEL in the target encoding. This causes the LF and NEL to translate to the same character and be unable to be distinguished.
  • If seven-bit ASCII was used, there was an "unused" high bit in 8-bit bytes, and many pieces of software stored other information there. Software would also pack the seven bits and discard the eighth, such as packing five seven-bit ASCII characters in a 36-bit word. On the PDP-11, bytes with the high bit set were treated as negative numbers, behavior that was copied to C, causing unexpected problems if the high bit was set. These all made it difficult to switch from ASCII to the 8-bit EBCDIC (and also made it difficult to switch to 8-bit extended ASCII encodings).

Code page layout

Further information: EBCDIC code pages

There are hundreds of EBCDIC code pages based on the original EBCDIC character encoding; there are a variety of EBCDIC code pages intended for use in different parts of the world, including code pages for non-Latin scripts such as Chinese, Japanese (e.g., EBCDIC 930, JEF, and KEIS), Korean, and Greek (EBCDIC 875). There is also a huge number of variations with the letters swapped around for no discernible reason.

The table below shows the "invariant subset" of EBCDIC, which are characters that should have the same assignments on all EBCDIC code pages that use the Latin alphabet. (This includes most of the ISO/IEC 646 invariant repertoire, except the exclamation mark.) It also shows (in gray) missing ASCII and EBCDIC punctuation, located where they are in Code Page 37 (one of the code page variants of EBCDIC). The blank cells are filled with region-specific characters in the variants, but the characters in gray are often swapped around or replaced as well. Like ASCII, the invariant subset works only for languages using the ISO basic Latin alphabet, such as English (excluding loanwords and some uncommon orthographic variations) and Dutch (if the "ij" and "IJ" ligatures are written as two characters).

EBCDIC
0 1 2 3 4 5 6 7 8 9 A B C D E F
0x NUL SOH STX ETX SEL  HT  RNL DEL  GE  SPS RPT  VT   FF   CR   SO   SI  
1x DLE DC1 DC2 DC3 RES/
ENP
 NL    BS  POC CAN  EM  UBS CU1  IFS  IGS  IRS IUS/
ITB
2x  DS  SOS  FS  WUS BYP/
INP
 LF  ETB ESC  SA  SFE  SM/
SW
CSP MFA ENQ ACK BEL
3x SYN   IR   PP  TRN NBS EOT SBS   IT  RFF CU3 DC4 NAK SUB
4x  SP  ¢ . < ( + |
5x & ! $ * ) ; ¬
6x - / ¦ , % _ > ?
7x ` : # @ ' = "
8x a b c d e f g h i ±
9x j k l m n o p q r
Ax ~ s t u v w x y z
Bx [ ]
Cx { A B C D E F G H I
Dx } J K L M N O P Q R
Ex \ S T U V W X Y Z
Fx 0 1 2 3 4 5 6 7 8 9  EO 

Definitions of non-ASCII EBCDIC controls

Following are the definitions of EBCDIC control characters which either do not map onto the ASCII control characters, or have additional uses. When mapped to Unicode, these are mostly mapped to C1 control character codepoints in a manner specified by IBM's Character Data Representation Architecture (CDRA).

Although the default mapping of New Line (NL) corresponds to the ISO/IEC 6429 Next Line (NEL) character (the behaviour of which is also specified, but not required, in Unicode Annex 14), most of these C1-mapped controls match neither those in the ISO/IEC 6429 C1 set, nor those in other registered C1 control sets such as ISO 6630. Although this effectively makes the non-ASCII EBCDIC controls a unique C1 control set, they are not among the C1 control sets registered in the ISO-IR registry, meaning that they do not have an assigned control set designation sequence (as specified by ISO/IEC 2022, and optionally permitted in ISO/IEC 10646 (Unicode)).

Besides U+0085 (Next Line), the Unicode Standard does not prescribe an interpretation of C1 control characters, leaving their interpretation to higher level protocols (it suggests, but does not require, their ISO/IEC 6429 interpretations in the absence of use for other purposes), so this mapping is permissible in, but not specified by, Unicode.

Mnemonic EBCDIC CDRA pairing Name Description
SEL 04 009C Select Device control character taking a single-byte parameter.
PF Punch Off Listed in this location by GOST 19768-93.
RNL 06 0086 Required New Line Line-break resetting Indent Tab mode
LC Lower Case Listed in this location by GOST 19768-93.
GE 08 0097 Graphic Escape Non-locking shift that changes the interpretation of the following character (see e.g. Code page 310). Compare ISO/IEC 6429's SS2 (008E).
SPS 09 008D Superscript Begin superscript or undo subscript. Compare ISO/IEC 6429's PLU (008C).
RPT 0A 008E Repeat Switch to an operation mode repeating a print buffer
SMM Start of Manual Message Listed in this location by GOST 19768-93.
RES/ENP 14 009D Restore, Enable Presentation Resume output (after BYP/INP)
NL 15 0085 (000A) New Line Line break. Default mapping (0085) matches ISO/IEC 6429's NEL. Mappings sometimes swapped with Line Feed (EBCDIC 0x25) in accordance with UNIX line breaking convention.
POC 17 0087 Program Operator Communication Followed by two one-byte operators that identify the specific function, for example a light or function key. Contrast with ISO/IEC 6429's CSI (009B), OSC (009D) and APC (009F).
IL Idle Listed in this location by GOST 19768-93.
UBS 1A 0092 Unit Backspace A fractional backspace.
CC Cursor Control Listed in this location by GOST 19768-93.
CU1 1B 008F Customer Use One Not used by IBM; for customer use.
IUS/ITB 1F 001F Interchange Unit Separator, Intermediate Transmission Block Either used as an information separator to terminate a block called a "unit" (as in ASCII; see also IR), or used as a transmission control code to delimit the end of an intermediate block.
DS 20 0080 Digit Select Used by S/360 CPU edit (ED) instruction
SOS 21 0081 Start of Significance Used by S/360 CPU edit (ED) instruction. (Note: different from ISO/IEC 6429's SOS; where distinguishing them is necessary, IBM abbreviates Start of Significance as SOS. (with a dot) and Start of String as SOS, otherwise they are abbreviated the same.)
FS, FDS 22 0082 Field Separator Used by S/360 CPU edit (ED) instruction. (Note: (Interchange) File Separator, as abbreviated FS in ASCII, is at 0x1C and abbreviated IFS.)
WUS 23 0083 Word Underscore Underscores the immediately preceding word. Contrast with ISO/IEC 6429's SGR.
BYP/INP 24 0084 Bypass, Inhibit Presentation De-activates output, i.e. ignores all graphical characters and control characters besides transmission control codes and RES/ENP, until the next RES/ENP.
SA 28 0088 Set Attribute Marks the beginning of a fixed-length device specific control sequence. Deprecated in favour of CSP.
SFE 29 0089 Start Field Extended Marks the beginning of a variable-length device specific control sequence. Deprecated in favour of CSP.
SM/SW 2A 008A Set Mode, Switch Device specific control that sets a mode of operation, such as a buffer switch.
CU2 2B 008B Customer Use Two This appears in some specifications, such as GOST 19768-93; newer IBM specifications for EBCDIC control codes list only CU1 and CU3 as customer-use, and use this position for CSP.
CSP Control Sequence Prefix Marks the beginning of a variable-length device specific control sequence. Followed by a class byte specifying a category of control function, a count byte giving the sequence length (including count and type bytes, but not the class byte or initial CSP), a type byte identifying a control function within that category, and zero or more parameter bytes. Contrast with ISO/IEC 6429's DCS (0090) and CSI (009B).
MFA 2C 008C Modify Field Attribute Marks the beginning of a variable-length device specific control sequence. Deprecated in favour of CSP.
30 0090 (reserved) Reserved for future use by IBM
31 0091 (reserved) Reserved for future use by IBM
IR 33 0093 Index Return Either move to start of next line (see also NL), or terminate an information unit (see also IUS/ITB).
PP 34 0094 Presentation Position Followed by two one-byte parameters (firstly function, secondly number of either column or line) to set the current position. Contrast with ISO/IEC 6429's CUP and HVP.
PN Punch On Listed in this location by GOST 19768-93.
TRN 35 0095 Transparent Followed by one byte parameter that indicates the number of bytes of transparent data that follow.
RST Reader Stop Listed in this location by GOST 19768-93.
NBS 36 0096 Numeric Backspace Move backward the width of one digit.
UC Upper Case Listed in this location by GOST 19768-93.
SBS 38 0098 Subscript Begin subscript or undo superscript. Compare ISO/IEC 6429's PLD (008B).
IT 39 0099 Indent Tab Indents the current and all following lines, until RNL or RFF is encountered.
RFF 3A 009A Required Form Feed Page-break resetting Indent Tab mode.
CU3 3B 009B Customer Use Three Not used by IBM; for customer use.
3E 009E (reserved) Reserved for future use by IBM
EO FF 009F Eight Ones All ones character used as filler

Code pages with Latin-1 character sets

The following code pages have the full Latin-1 character set (ISO/IEC 8859-1). The first column gives the original code page number. The second column gives the number of the code page updated with the euro sign (€) replacing the universal currency sign (¤) (or in the case of EBCDIC 924, with the set changed to match ISO 8859-15)

Different countries have different code pages because these code pages originated as code pages with country-specific character repertoires, and were later expanded to contain the entire ISO 8859-1 repertoire, meaning that a given ISO 8859-1 character may have different code point values in different code pages. They are known as Country Extended Code Pages (CECPs).

CCSID Euro
update
Countries
037 1140 Australia, Brazil, Canada, New Zealand, Portugal, South Africa, USA
273 1141 Austria, Germany
277 1142 Denmark, Norway
278 1143 Finland, Sweden
280 1144 Italy
284 1145 Latin America, Spain
285 1146 Ireland, United Kingdom
297 1147 France
500 1148 International
871 1149 Iceland
1047 924 Open Systems (MVS C compiler)

Criticism and humor

Exclamation mark with arrows pointing at each otherThis section appears to contradict another section of this article. Please see the talk page for more information. (May 2024)

Open-source software advocate and software developer Eric S. Raymond writes in his Jargon File that EBCDIC was loathed by hackers, by which he meant members of a subculture of enthusiastic programmers. The Jargon File 4.4.7 gives the following definition:

EBCDIC: /eb´s@·dik/, /eb´see`dik/, /eb´k@·dik/, n. An alleged character set used on IBM dinosaurs. It exists in at least six mutually incompatible versions, all featuring such delights as non-contiguous letter sequences and the absence of several ASCII punctuation characters fairly important for modern computer languages (exactly which characters are absent varies according to which version of EBCDIC you're looking at). IBM adapted EBCDIC from punched card code in the early 1960s and promulgated it as a customer-control tactic (see connector conspiracy), spurning the already established ASCII standard. Today, IBM claims to be an open-systems company, but IBM's own description of the EBCDIC variants and how to convert between them is still internally classified top-secret, burn-before-reading. Hackers blanch at the very name of EBCDIC and consider it a manifestation of purest evil.

— The Jargon file 4.4.7

EBCDIC design was also the source of many jokes. One such joke, found in the Unix fortune file of 4.3BSD Reno (1990) went:

Professor: "So the American government went to IBM to come up with an encryption standard, and they came up with—"
Student: "EBCDIC!"

References to the EBCDIC character set are made in the 1979 computer game series Zork. In the "Machine Room" in Zork II, EBCDIC is used to imply an incomprehensible language:

This is a large room full of assorted heavy machinery, whirring noisily. The room smells of burned resistors. Along one wall are three buttons which are, respectively, round, triangular, and square. Naturally, above these buttons are instructions written in EBCDIC...

In 2021, it became public that a Belgian bank was still using EBCDIC internally in 2019. A customer insisted that the correct spelling of his surname included an umlaut, which the bank omitted, and the customer filed a complaint citing the guarantee in the General Data Protection Regulation of the right to timely "rectification of inaccurate personal data." The bank's argument included the fact that their system used EBCDIC, as well as that it did not support letters with diacritics (or lower case, for that matter). The appeals court ruled in favor of the customer.

See also

References

  1. ^ Mackenzie, Charles E. (1980). Coded Character Sets, History and Development (PDF). The Systems Programming Series (1 ed.). Addison-Wesley Publishing Company, Inc. ISBN 0-201-14460-3. LCCN 77-90165. Retrieved 2022-04-06.
  2. Donovan, John J. (1972). Systems Programming. McGraw-Hill. p. 65. ISBN 0-07-085175-1.
  3. ^ Bemer, Bob. "EBCDIC and the P-Bit (The Biggest Computer Goof Ever) - Computer History Vignettes". Archived from the original on 2018-05-13. Retrieved 2013-07-02. ...but their printers and punches were not ready to handle ASCII, and IBM just HAD to announce.
  4. "Doug Jones's punched card codes". homepage.cs.uiowa.edu. Retrieved 2023-01-14.
  5. "X3.4-1963". 1963. p. 4. (NB. IBM had four staff members on the final 21-member ASA X3.2 sub-committee.)
  6. IBMnt (2008). "IBM confirms the use of EBCDIC in their mainframes as a default practice". Archived from the original on 2013-01-03. Retrieved 2008-06-16.
  7. "Enhanced ASCII". z/OS UNIX System Services Planning. 2024-08-28.
  8. "Rationale for International Standard – Programming Languages – C" (PDF). Revision 5.10. April 2003. § MSE.4: Support for invariant ISO/IEC 646. Archived (PDF) from the original on 2016-06-06. Retrieved 2022-11-24.
  9. PDP-10 Reference Handbook, Book 2: Assembling the Source Program (PDF). Digital Equipment Corporation. p. 221.
  10. "Invariant character set". IBM Knowledge Center. 2018-08-14.
  11. ^ Umamaheswaran, V.S. (1999-11-08). "3.3 Step 2: Byte Conversion". UTF-EBCDIC. Unicode Consortium. Unicode Technical Report #16. The 64 control characters...the ASCII DELETE character (U+007F)...are mapped respecting EBCDIC conventions, as defined in IBM Character Data Representation Architecture, CDRA, with one exception -- the pairing of EBCDIC Line Feed and New Line control characters are swapped from their CDRA default pairings to ISO/IEC 6429 Line Feed (U+000A) and Next Line (U+0085) control characters
  12. ^ Steele, Shawn (1996-04-24). "cp037_IBMUSCanada to Unicode table". Microsoft/Unicode Consortium.
  13. Heninger, Andy (2019-02-15). "NL: Next Line (A) (Non-tailorable)". Unicode Line Breaking Algorithm. Revision 43. Unicode Consortium. Unicode Standard Annex #14.
  14. ISO/TC 46 (1986-02-01). Additional Control Functions for Bibliographic Use according to International Standard ISO 6630 (PDF). ITSCJ/IPSJ. ISO-IR-124.{{citation}}: CS1 maint: numeric names: authors list (link)
  15. ISO/IEC International Register of Coded Character Sets To Be Used With Escape Sequences (PDF), ITSCJ/IPSJ, ISO-IR
  16. ISO/IEC JTC 1/SC 2 (2017). "12.4: Identification of control function set". Information technology — Universal Coded Character Set (UCS) (5th ed.). ISO. pp. 19–20. ISO/IEC 10646. For other C0 or C1 sets, the final octet F shall be obtained from the International Register of Coded Character Sets....If such an escape sequence appears within a code unit sequence conforming to this International Standard, it shall be padded in accordance with Clause 11.{{citation}}: CS1 maint: numeric names: authors list (link)
  17. Unicode Consortium (2019). "23.1: Control Codes". The Unicode Standard (PDF) (12.0.0 ed.). pp. 868–870. ISBN 978-1-936213-22-1.
  18. ^ "Appendix G-1. EBCDIC control character definitions". Character Data Representation Architecture. IBM Corporation. Archived from the original on 2018-09-11.
  19. ^ GOST (1993). "Информационная технология. Наборы 8-битных кодированных символов. Двоичный код обработки информации" [Information technology. 8-bit coded character sets. Binary code for information processing] (in Russian). GOST 19768-93.
  20. IBM. "Character Data Representation Architecture (CDRA)". IBM. p. 327. The mnemonic for the Start of Significance control character in EBCDIC has been modified to include a dot (.) at the end (SOS.). This has been done to distinguish it from the SOS mnemonic used in ISO-8 for the Start of String control character. The dot does not alter the property of the control in any way.
  21. "iso8859.txt". Kermit project / Columbia University.
  22. Raymond, Eric S. (1997). "The New Hacker's Dictionary". p. 310.
  23. "EBCDIC". Jargon File. Archived from the original on 2018-05-13. Retrieved 2018-05-13.
  24. 4.3BSD-Reno/share/games/fortune/fortunes
  25. "Court of Appeal of Brussels - 2019/AR/1006 - GDPRhub".
  26. Eden, Terence (2021-10-25). "EBCDIC is incompatible with GDPR – Terence Eden's Blog".

External links

Character encodings
Early telecommunications
ISO/IEC 8859
Bibliographic use
National standards
ISO/IEC 2022
Mac OS Code pages
("scripts")
DOS code pages
IBM AIX code pages
Windows code pages
EBCDIC code pages
DEC terminals (VTx)
Platform specific
Unicode / ISO/IEC 10646
TeX typesetting system
Miscellaneous code pages
Control character
Related topics
Character sets
Categories: