Talk:EBCDIC

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Punched-card photo[edit]

I would not say that the punched-card photo illustrates EBCDIC. Punched-card code is a separate encoding of the same characters. Peter Flass (talk) 00:47, 22 September 2016 (UTC)[reply]

I second this and nominate the punch card image for removal. The card is clearly illustrating a 12-bit encoding system, and the image is presented right next to a paragraph saying EBCDIC is an 8-bit encoding.
Further, there doesn't seem to be any connection between the encoding shown on the punch card and that described in the article. Some examples:
Character | Card encoding | EBCDIC encoding
----------+---------------+----------------
0 | 001000000000 | 11110000
1 | 000100000000 | 11110001
2 | 000010000000 | 11110010
3 | 000001000000 | 11110011
A | 100100000000 | 11000001
+ | 100000001010 | 01001110
. | 100001000010 | 01001011
If 12-bit punch cards are somehow related to 8-bit EBCDIC, the article should have a section added to explain the mapping. If they're unrelated, the punch card image should be removed. Mike Schiraldi (talk) 19:11, 8 March 2023 (UTC)[reply]
Change the lower 10 punches into the binary numbers 0000..1001, and if there is more than one, 'or' them together. This is always the lower 4 bits of the EBCDIC. The upper 3 punches are turned into 1100, 1101, 1110, and 1111 if all off. Then some further logic gates flips some of the bits depending on others:
0 | 1110 0000 | 1111 0000
1 | 1111 0001 | 1111 0001
2 | 1111 0010 | 1111 0010
3 | 1111 0011 | 1111 0011
A | 1100 0001 | 1100 0001
+ | 1100 1110 | 0100 1110
. | 1100 1011 | 0100 1011
Spitzak (talk) 02:09, 9 March 2023 (UTC)[reply]

External links modified[edit]

Hello fellow Wikipedians,

I have just modified 2 external links on EBCDIC. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:

When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.

checkY An editor has reviewed this edit and fixed any errors that were found.

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.

Cheers.—InternetArchiveBot (Report bug) 14:41, 15 September 2017 (UTC)[reply]

The first of those is on Bemer's own web site, as linked to elsewhere on the page; I've fixed it to point there (and used {{cite web}} for it).
The second of those doesn't work; machines often don't work when fetched from the Wayback Machine. I removed that link. Guy Harris (talk) 17:21, 15 September 2017 (UTC)[reply]

"Succeeded by UTF-16"[edit]

The infobox claims that EBCDIC was "succeeded by UTF-16". A citation has been requested, with the edit comment "add cn on succeeded by UTF-16 in infobox -- it is non-trivial to source (I have not found one yet); and i'm interested in more detail such as when it was succeeded by utf-16."

I'm curious in what fashion it was succeeded by UTF-16.

Deciding whether to store data as UTF-8 or UTF-16 on IBM's Web site says that DB2 supports either encoding, but that "COBOL and PL/I on z/OS use UTF-16 for Unicode data. Neither language supports UTF-8."

And they also say on the "Unicode on IBM i" page that "The IBM® i operating system provides support for Unicode.", although "Mapping of data" says "The IBM® i operating system uses the EBCDIC encoding scheme. However, not all clients attached to the system use an EBCDIC encoding scheme to store, retrieve, and process data. Therefore, some clients use Unicode as an exchange mechanism that is safe across all platforms."

So perhaps 1) IBM's adding support Unicode even in their EBCDIC-based OSes (as opposed to their ASCII-and-extended-versions-thereof-based AIX, and as opposed to the similarly ASCII-and-extended-versions-thereof-based Linux on both IBM Z and IBM Power Systems) and 2) when they're not constrained to use UTF-8, they're choosing UTF-16.

However, are they completely switching to Unicode (in some encoding), so that, for example, a z/OS data set catalog can have entries in Unicode? Can system services that take character strings as arguments take Unicode strings (in some encoding) - in particular, for services that formerly took EBCDIC strings, are there versions that take Unicode strings?

And are they uniformly using UTF-16 as the encoding, except for cases where they're constrained to use UTF-8 (such as for most Internet protocols, and for whatever they call their UNIX environments on IBM i and z/OS these days)? Guy Harris (talk) 03:11, 16 December 2018 (UTC)[reply]

Absolutely not. I can assure you 100% that the primary character set of IBM z/OS is still EBCDIC and is likely to remain so for the foreseeable future. It is so basic to the environment that I am having trouble finding a reference to cite -- it seems to be just kind of assumed, but I assure you that working in z/OS every day I work primarily in EBCDIC. Charlesm20 (talk) 13:43, 17 June 2019 (UTC)[reply]
Here is something of a reference: [1] Charlesm20 (talk) 13:54, 17 June 2019 (UTC)[reply]
Somebody removed the claim that it was succeeded by UTF-16 in this edit. I've seen nothing to indicate that we should put the claim back, and your comments further support its removal. Guy Harris (talk) 17:13, 17 June 2019 (UTC)[reply]

Question regarding invariant character set[edit]

Is not colon (EBCDIC 7a, ASCII 3a) part of the EBCDIC invariant character set? It is included here https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/nls/rbagsinvariantcharset.htm which would seem to me to be authoritative.

Apologies if I am not doing this edit correctly. It's about my third edit in about 20 years.

Charlesm20 (talk) 22:39, 13 June 2019 (UTC)[reply]

That looks like a pretty authorative reference, probably should be used to update the table and add as a citation.Spitzak (talk) 02:36, 14 June 2019 (UTC)[reply]
Heck, the EBCDIC chart in Appendix F of Form A22-6821-0, IBM System/360 Principles of Operation - no date, but the "-0" suggests this is the first edition - has 0x7a for colon, so that dates back a while. I'm guessing that only the empty spaces in that chart are eligible to be different between different EBCDIC code pages. Guy Harris (talk) 03:47, 14 June 2019 (UTC)[reply]
It does date back. So do I. I basically started my coding career with that manual. The date would be ~1964. I have been working with EBCDIC basically my entire career. No, some of those EBCDIC characters did not survive the sixties. And from bitter experience cent and exclamation point are DEFINITELY not invariant. When IBM discovered there were places that did not use the American alphabet they stole some of those spots for British pound signs and so forth -- that is how we ended up with variant EBCDIC. Charlesm20 (talk) 13:33, 17 June 2019 (UTC)[reply]
The article says the invariant character set is "characters that should have the same assignments on all EBCDIC code pages" - emphasis theirs, not mine. I don't know whether an emphasized "should" means "should have, but don't have in practice" or what, so I'm not sure what should :-) be in the invariant character set by that definition. Should :-) we change the definition to "that have the same assignments", and either make sure it's true on all the code pages whose definitions we can find or find an IBM reference giving the invariant character set? Guy Harris (talk) 17:18, 17 June 2019 (UTC)[reply]
If you remove all of the characters that don't change in any set called "EBCDIC" I think you will remove all the letters, so probably not. I like the idea of using the reference above to fix the colors in the table to match what that document claims is invariant.Spitzak (talk) 22:00, 18 June 2019 (UTC)[reply]

Lower-case letters, at least; EBCDIC 290 moves the lower-case letters, although it doesn't move the upper-case ones. But EBCDIC 290 does, at least, have colon as 0x7A. Guy Harris (talk) 23:45, 18 June 2019 (UTC)[reply]

36-bit machines more likely to adopt ASCII than EBCDIC?[edit]

The article speaks of 36-bit machines having 5 7-bit ASCII characters per word where, presumably, they'd have to go with 4 8-bit characters per word if they used EBCDIC.

The PDP-10, running either TOPS-10 or TENEX, did store ASCII in that fashion (with TOPS-10, at least, also using a 6-bit ASCII-derived subset, SIXBIT). Multics on various 36-bit GE and Honeywell machines, however, stored 4 9-bit bytes per word, with ASCII characters in those bytes, and the UNIVAC 1100/2200 series running EXEC 8 through OS 2200 apparently also went with 9-bit ASCII or 6-bit FIELDATA.

So 5 7-bit ASCII characters per word wasn't universal with newer (post-ASCII) 36-bit machines (the older 36-bit machines, such as the IBM 700/7000 machines, didn't adopt ASCII because it didn't exist yet). DEC may have picked ASCII because it only required 7 bits, but also may have picked it because it was the character encoding used by Teletype models such as the Teletype Model 33, as those were often used as terminals. Guy Harris (talk) 03:21, 25 May 2020 (UTC)[reply]

A good explanation, I think the PDP-10 as with other machines of that time used ASCII where the interface to teletypes had become important. The bit saving idea sounded very odd to me (even though as an assembler programmer of the time, we were always trying to save bits in memory and storage). Indeed most machines of this period were using 6 bit bytes and 36 bit words which is far more sensible SO LONG AS YOU ONLY WANT CAPITALS lol. Brian R Hunter (talk) 01:20, 26 May 2020 (UTC)[reply]

How is this a sentence fragment?[edit]

A {{sentence fragment}} tag was added to

IBM AIX running on the RS/6000 and its descendants including the IBM Power Systems, Linux running on IBM Z, and operating systems running on the IBM PC and its descendants use ASCII, as did AIX/370 and AIX/390 running on System/370 and System/390 mainframes.

but I see a subject, verb, and object in the first clause - the subject is "IBM AIX running on the RS/6000 and its descendants including the IBM Power Systems, Linux running on IBM Z, and operating systems running on the IBM PC and its descendants", i.e. a list of operating systems, the verb is "use", and the object is "ASCII" - and I see a subject, verb, and implied object in the second clause - the subject is "AIX/370 and AIX/390 running on System/370 and System/390 mainframes", the verb is "did" as in "did use", i.e. "used to use" (because those OSes are unlikely to still be used), and the implied object is "ASCII" again, as per "as".

So what makes any of that a sentence fragment? Guy Harris (talk) 20:23, 5 July 2021 (UTC)[reply]

I can understand why the complainant thought so, because the sentence is so overloaded with verbiage that its structure is difficult to decipher. Fundamentally, ASCII is a software function so the hardware references are just a background noise that is drowning out the signal. How about

IBM AIX, AIX/370 and AIX/390 all use ASCII.

Problem solved. --John Maynard Friedman (talk) 23:22, 5 July 2021 (UTC)[reply]
Now we need to solve the "what about Linux?" problem. :-)

IBM AIX, Linux on IBM Z, Linux on Power, AIX/370 and AIX/390 all use ASCII.

IBM no longer makes x86 boxes, so we can probably leave the PC operating systems out.
Then again, "IBM AIX" includes more than just the one remaining AIX, so perhaps just

IBM AIX, Linux on IBM Z, and Linux on Power all use ASCII.

Guy Harris (talk) 00:44, 6 July 2021 (UTC)[reply]
Works for me, though it could be argued that Linux has always and only used ASCII or Unicode, so how is it relevant? IBM-World Rules, I suppose. --John Maynard Friedman (talk) 11:26, 6 July 2021 (UTC)[reply]
It could also be argued that various versions of AIX have always and only used ASCII or various flavors of extended ASCII (including UTF-8), so how are they relevant?
For the S/3x0 machines, UN*Xes (whether AIX UTS, Linux, or the never-shipped(?) Solaris port) are exceptions, as most other OSes on them use EBCDIC, so that makes them equally relevant.
For POWER/PowerPC/Power ISA machines, they didn't run any OSes using EBCDIC until the AS/400 switch from IMPI to PowerAS, and those were a separate line of machines from the RS/6000 line that ran a version of AIX; however, with the IBM Power Systems, the lines running AIX and Linux (IBM System p) and running OS/400 (IBM System i) were merged, so perhaps more relevant. Guy Harris (talk) 17:56, 6 July 2021 (UTC)[reply]
Which I guess risks getting bogged down in hardware again because the question only arises because IBMers assume that if is is S360 or S370, it must be EBCDIC. Let's just go with your last text and tiptoe quietly away. --John Maynard Friedman (talk) 22:40, 6 July 2021 (UTC)[reply]
Done. Do we need to mention UTF-8 as well? (Other flavors of extended ASCII are supported, but AIX and Linux probably mostly use UTF-8.) Guy Harris (talk) 02:39, 7 July 2021 (UTC)[reply]
I think the reason the sentence was there and why this particular subset of non-EBCDIC-using systems was listed was because they are IBM products. The point is that IBM makes some stuff that does not use EBCDIC. I added what I hope is the minimal amount of text needed to indicate why anybody is listing these things.Spitzak (talk) 03:25, 7 July 2021 (UTC)[reply]

New character chart format[edit]

@Spitzak: I liked the old format for the character chart much better. I thought it was a lot more readable than the current version.Peter Flass (talk) 20:23, 17 November 2021 (UTC)[reply]

Can you explain exactly how? The whole point of doing this is to make the tables readable and to match the style used elsewhere in Wikipedia.Spitzak (talk) 20:30, 17 November 2021 (UTC)[reply]
I thought the colors made it more readable, and the stippling detracts from it. I know this table has been the subject of a lot of back-and-forth, but I thought it had been gotten into pretty good shape. Peter Flass (talk) 02:30, 18 November 2021 (UTC)[reply]
The people doing the Unicode block charts were rather insistent in the dotted boxes, I tried a version without them first.Spitzak (talk) 02:54, 18 November 2021 (UTC)[reply]
Yes, because the dotted boxes carry semantic information in Unicode charts (and isn't limited to control characters). I'm not convinced they have to be used for these character charts though. There's an argument for consistency between the two types of charts but another syntax (like parenthesis in IBM's charts) could work. I would oppose removing them from the Unicode block charts, of course. DRMcCreedy (talk) 04:32, 18 November 2021 (UTC)[reply]