|
message: 3idea that if I need to make a one-line change to a program that I first
date: Thu, 20 Jul 2017 16:07:54 -0400
from: Dan <dan27649@xxxxxxxxx>
subject: Re: Who the bloody eff still codes CABEQ in this century?!?!?!?
I like both Scott's and Jon's ideas for "customizing" the compiler.
The problem, of course, is all of the legacy code. No one's gonna buy the
have
to gut it of all the CAB*, CAS*, GOTO, and TAG opcodes.
authority to the RPG compiler commands except to a restricted profile, and
I could see a process that wouldn't need IBM's blessing that removes all
force compiles to go through a pre-processor that does the vetting. Again,
with the legacy code issue, if you had a SCM tool, you could set a base for
existing members and not allow any new uses of "banned" opcodes. Frankly,
though, if developers and code reviewers can't discipline themselves to
adhere to coding standards, there are other problems that need to be
addressed.
- Dan
I like this idea Dan. I would add to your list a plan END (where it should
be ENDIF, ENDDO....). At least generate a report of these violations, we
have a lot of code written in fixed RPGIV format with this crap in it. I
don't want to have to rewrite the code every time I need to make a small
fix, so it should compile and run. I am in a one man shop (as far as the
IBM
I goes), but I get it. Everywhere that I have been, I have encountered a
lot
of code written by predecessors that contains code written as if they were
writing RPGII on a System 36 (and no, I never had that pleasure).
Jim
--
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
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.