Anthony Beecher wrote that "-" in ASCII maps to DC4 (device control 4)
in EBCDIC(!!) using the EBCDIC to ASCII conversion charts I pointed out
residing at the University of Illinois in their Character Codes Quick
Reference at http://www.uiuc.edu/ccso/pubs/all/qr/QR_0.8.html.

Dear Anthony:

Whoa!!! Hold on, big fella.  Let's do a sanity check here. In any just
and decent world, an ordinary dash (-) in ASCII should map to the same
graphic in EBCDIC.   I think you were using the wrong table.

The dash in ASCII is 0x2D, as shown in Table 4: 7-bit ASCII Definitions.
Using Table 2b -- 8-bit ASCII --> EBCDIC, you see that 0x2D maps to 0x60
in EBCDIC, which Table 3: EBCDIC Definitions shows to be the dash, as
expected.

Further, you added "No wonder X12 likes to express money as an absolute
value with a separate sign indicator. If you try to send a negative
number from ASCII to EBCDIC, you won't get the sign character through
conversion."  Actually, X12 numeric elements do include the minus sign,
or dash, for negative numbers.  Maybe you're thinking of the COBOL SIGN
SEPARATE thingy.

William J. Kammerer
FORESIGHT Corp.
4950 Blazer Memorial Pkwy.
Dublin, OH USA 43017-3305
+1 614 791-1600

Visit FORESIGHT Corp. at http://www.foresightcorp.com/
"Commerce for a New World"

=======================================================================
To contact the list owner:  mailto:[EMAIL PROTECTED]
Archives at http://www.mail-archive.com/edi-l%40listserv.ucop.edu/

Reply via email to