- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Admin
Admin
Captcha: delenit Someone get me one of those paper tape punches. We need a rubout.
Admin
Admin
Actually, I am wondering if not reporting it doesn't mean that he's complicit in fraud anyway?
Admin
You would kind of expect that a language could convert to and from its native datatypes.
TRWTF is she's doing a project with COBOL and hasn't taken the time to learn how numbers work.
Admin
Admin
I can't really defend the writing (as someone pointed out, opposable thumbs aren't necessary for hitting a space bar), but as many commenters seem unaware of, most New World monkeys don't have opposable thumbs.
https://en.wikipedia.org/wiki/New_World_monkey
Admin
(EBCDIC was IBM's alternative to ASCII, because IBM had to be different).
ASCII has 128 "characters"; EBCDIC has 256.
Admin
The code in the article is SQR, not COBOL!
Admin
Exactly. It's even a bigger WTF for "the company's best expert at data conversion." Hasn't she interfaced with a "mainframe" before? An AS-400? This is absolutely standard stuff for doing ASCII processing of numbers that were processed in an IBM-360-style EBCDIC packed-decimal format. It's baked into the hardware. (So no, it's not just COBOL.)
I personally have done this at least half a dozen different times in different projects in my career. And I do not specialize in data conversion. (But I do specialize in being old and experienced. ;-)
Admin
Signed decimal? Pfah! Real men (and real women) let the numbers roll over, odometer-style!
Admin
That is WRONG BEYOND WRONG.
The VAX was a machine from Digital Equipment Corporation, and while some of the very large machines did start to resemble mainframes, VMS and the UNIX variants that lived on VAX were all ASCII. EBCDIC was an IBM thing for the IBM world.
Though I do believe the companies which cloned IBM machines also used EBCDIC because... they cloned IBM machines.
CAPTHCA: vindico
Admin
Ceridian Tax Services, this means you!
Admin
In x86 assembly language, you can use the suffix 't'/'T' to specify decimal numbers (I always assumed it stood for 'ten'). 'd'/'D' is also valid. However, if you change the default radix (for numbers with no suffix) to 16, then 't'/'T' is required for decimal, since 'd'/'D' are valid hex digits. (I'm not sure why they didn't worry about this with binary, since 'b'/'B' doesn't play nice with a default radix of 16 either...)
Admin
I assumed 2t would be 2 in the trinary system. Which is of course equal to 2 in the decimal system. So no harm done. No WTF, nothing to see here, move along.
Although the real WTF of the story is the assumption that business and intelligence go together.
Admin
Admin
Why, what font were you using...
Admin
TRWTF is monkeys without opposable thumbs trololololol
Admin
Or the negative numbers that end in something other then 6 go through fine and with the lack of them the only parts of the data that are looked at contain a single negative number
Admin
Zoned decimal formats were also not intended for display so the bytes aren't supposed to make sense when decoded into ASCII or EBCDIC. The high nibble for each digit byte could potentially contain a different control value which would render it unreadable. It would be like complaining that the four bytes of an encoded 32-bit integer are gobbledygook. Good thing they weren't dealing with packed decimals.