Re: Need clarification on unformatted IO



>The character code used on the IBM 704 is BCDIC, and characters
>are called BCD characters.

Binary Coded Decimal, a.k.a., BCD, is just that. Decimal that is binary encoded. At that
time there were TRUE decimal machines, as well as true binary and those that used binary coded
decimal. These days there are no true decimal machines (to speak of) and binary coded decimal
is the closest we get to decimal.

BCDIC which stands for BCD Interchange Code (or at least it used to) was an extension to BCD
allowing other characters than just the decimal digits to be encoded in binary in a manner
that was a consistent extension of BCD. Note the shift in thinking, from decimal numbers
to decimal digits, to characters for decimal digits, which are then generalized. The only
relation between BCDIC and BCD is that the characters for '0' through '9' in BCDIC have
the same binary encoding as the decimal digits 0 .. 9 had in BCD. But BCD is a numeric
representation, whereas BCDIC is a character encoding.

As for "binary" for file structures that are not messed with by the RTL, I think the
"cooked" and "uncooked" terminology should have become more widespread. "Stream" is
certainly better than "binary" but still not very descriptive to my mind.
.



Relevant Pages

  • Re: Need fixed width EBCDIC font
    ... 209-217 = J-R ... 226-233 = S-Z ... The files are fixed length records, no line terminators, no special characters, no TAB characters, no characters 0x00-0x20 ... EBCDIC was an extension of BCD, which was the original alpha set on IBM computers of the 1950's. ...
    (comp.fonts)
  • Re: Translation please
    ... Start the Perl interpreter and execute a Perl program that does the ... If the line contains one or more decimal digits followed by a tab ... string "58" repeated one-half the number of times there are characters ... When all of the input file has been read, close both files, rename ...
    (comp.lang.perl.misc)
  • Re: Translation please
    ... Start the Perl interpreter and execute a Perl program that does the ... If the line contains one or more decimal digits followed by a tab ... string "58" repeated one-half the number of times there are characters ... When all of the input file has been read, close both files, rename ...
    (comp.lang.perl.misc)
  • Re: How to find out if its a Number or String character?
    ... >> string are all decimal digits, ... >OK unless the string has less than 3 characters. ... AI's has an unnecessary execution of a boolean assignment, ...
    (borland.public.delphi.language.objectpascal)
  • Re: How to find out if its a Number or String character?
    ... Dr John Stockton wrote: ... > string are all decimal digits, ... OK unless the string has less than 3 characters. ...
    (borland.public.delphi.language.objectpascal)