It's some variation of BCD code, which was inherited from punched cards and still lives on in some IBM mainframes.[1]
[1] https://en.wikipedia.org/wiki/BCD_(character_encoding)#48-ch...
Almost certainly EBCDIC: http://www.astrodigital.org/digital/ebcdic.html
EBCDIC has discontinuities in the same places, I-J and R-S.
A-Z is non sequential, I’m guessing it’s something to do with making character selection logic simpler, but by looking at the letters I couldn’t come up with a definite pattern or rule.