× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Since most programmers dosn't start on a fresh every time they make a new
program but copy an existing one the only way to get rid of GOTO's, CAx,
MOVE/MOVEL, CALL/PARM etc. is to remove this code once and for all and that
means a project that first analyze the existing code to determind what part
of the code may be recoded by a program and what part has to be handled
manually, then the project has to be executed within a reasonably time
otherwise you will fight against new copies of deprecated OPCODE's from
copy/paste.

On Fri, Jul 21, 2017 at 2:53 PM, Jim Hawkins <jhawkins@xxxxxxxxxxxx> wrote:

message: 3
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
idea that if I need to make a one-line change to a program that I first
have
to gut it of all the CAB*, CAS*, GOTO, and TAG opcodes.

I could see a process that wouldn't need IBM's blessing that removes all
authority to the RPG compiler commands except to a restricted profile, and
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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.