I hear you.
Not to brag, but in my copious spare time at one organization I wrote a program to convert BASIC/400 code to RPGLE. (Ok, so I'm bragging). Were I in your Jimmy Shoes, I might consider something along those lines before I tried to rewrite the code. But I digress.
"It's nice to be the king!" - Mel Brooks.
Did I see the word "the" in your opening sentence? Does that mean that when you write new code, you don't get told to rewrite it in "S/3-era matching..." style because "free form" and "ILE" are too difficult for other staff to understand and maintain?
Oops. Ranting and whining. Sorry.
Maybe I need a new career. Does anybody need a teacher. "Those who can't do, teach".
Full of quotes today,
duane
P.S. I know you are correct. I have issues.
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck Calabro
Sent: Friday, February 03, 2017 2:52 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Procedure Examples VR7.1
On 2/3/2017 2:01 PM, Duane Scott wrote:
I would love to have everyone I work with agree that thinking along the lines of enhancing as we go.
I am the active maintainer of a S/3-era matching record program which sees daily use. Yes, I am the Last of the Matching Recordians. This thing has program described I specs, program described O specs (for disk files as well as printer files. Thousands of lines of left-indicator goodness. It's hard to modify without a cascade of unintended consequences.
One of the very first things I did when I had to add code to this thing was to make the additions sub-procedures. Saved my life. Because instead of having a variable be changeable throughout all thousands of LOC, I can have isolated variables which can only be read and written inside that sub-procedure. Local scope is the best!
Every time I add a new sub-procedure to this, the program becomes more resilient, less buggy, and easier to understand. So it is absolutely possible to add sub-procedures to enhance code - even ancient code - incrementally and safely. No need to do a mass conversion or anything drastic.
--
--buck
Try wiki.midrange.com!
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
CONFIDENTIALITY NOTICE: This electronic message transmission is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. If you have received this transmission, but are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this e-mail in error, please contact NALC Health Benefit Plan at 703-729-4677 and delete and destroy the original message and all copies.
As an Amazon Associate we earn from qualifying purchases.