- 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
''' // CHECK FOR VALID FIELD IF FIELD1 <> *BLANKS AND FIELD1 < 'SECNOD'; IsFrist = *ON; LEAVESR; ENDIF;
'''
Admin
My suggestion would be to replace a test for var<1 AND var>5 with False. Even with strings, your first character can't be both smaller than '1' and greater than '5' unless in your character enumeration '5' is before '1'. Which wouldn't be impossible with this Highly Paid Consultant.
Admin
^ HPC says that wrong markdown mark up made me look bad. LOL
Admin
"higher a Highly Paid Consultant" - speech to text issue?
Edit Admin
Well. I hesitate to take the HPC's side, of course, even though he was highered and I was not. But I will state for the record that customers sure as hell love changing their minds and three times out of ten will deny that they ever asked for Feature Foo, despite all evidence proving such, including the Requirements document they signed. (Of course, customers have been known to have high turnovers, which is a great timesaver because you don't even try the "we delivered what as asked for" line.)
Admin
They may or may not have enjoyed Higher Ed.
Edit Admin
How can it ever be both less than 1 and greater than 5? Surely that
AND
should be anOR
(properly parenthesized)?Admin
How do we know what is stored in that field are numbers? All we can see here are the way they start. Might be 'numbers' in the sense of part numbers, and '1' - '5' are coded as parts of the engine, while '6' - '9' are the chassis. So 12DF6, 43FG7 are engine bits, and 71GG5, 96AB0 are different panels.
Based on that, I think the highered consultant is a more interesting Wed, Thur, Fri thing
Admin
different code space??
Admin
COBOL has dialects, including one for the AS/400. So some migration would probably be necessary, but not to a different language.
Edit Admin
Or a highly paid copy editor?
Admin
Story not up to usual DailyWTF standards... A little too much weekend?
Edit Admin
O ... if only RPG had a way to store a numeric value ....
You can do integers, decimals (packed or zoned), and floats in RPG, so there's no excuse!
Edit Admin
Clearly you will never be a HPC, cschneid. You don't get to be "highly paid" by doing only the work necessary, after all. If you're in a learning mood and there are no HPCs nearby willing to reveal their secrets, go to the nearest auto dealership and see how many services they tell a customer are "absolutely needed", and how many perfectly good parts "must" be replaced.
Edit Admin
True, but the article cited that they bought their own AS/400, and therefore they moved from COBOL to RPG (probably RPG-II, but whatevs) and therefore they got in an HPC. That sequence of events makes no sense because as cschneid said, AS/400 has COBOL available, and so the "and therefore" of switching to RPG(-II) is null and void.
Admin
RPG III.
My employer bought an accounts-payable package from the HPC, including the RPG II (yuck) source code. The software was so bad we replaced it with PC-based within a year or two.
The company we were sharing/renting an HP3000 with was moving to an AS/400 (three or four racks' worth), so my employer decided to get their own tiny AS/400 model B10. The HPC was an IBM business partner, and apparently they were the ones who said both companies "needed" RPG. Like dpm said, you don't get to be "highly paid" by only doing the work necessary.
The HPC firm also doesn't get repeat business for a Y2K conversion in a few years, when their client already has 4-digit years in their tables and code. So they dropped the century digits during the conversion. I don't know what excuse they gave my employer for doing that, I wasn't there yet and the people who were have retired.
Admin
"AS/400 has COBOL available," however not necessarily included in the unit they purchased which would meaning buying and licensing another product from IBM. [Cha-ching.]
Admin
Maybe you "hire" a consultant but "higher" a Highly Paid Consultant.