× 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.



Hi Robert

Are the fields database fields?

Database fields that aren't used within your program or module aren't
available for the debugger, so my guess would be that the programmer has
defined them to trick the compiler into making them available for the
debugger.

All the best

Jonathan

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Robert Munday
Sent: 01 July 2007 01:43
To: RPG programming on the AS400 / iSeries
Subject: Modules Question

Not being familiar with all things module, I have a question.

I have a module containing some really nasty code, such as:

lines repeated:

FIELDB = FIELDA
FIELDB = FIELDA
(fieldb cannot equal fielda unless you move the value twice)

code which makes no logical sense:

FIELDA = FIELDA
FIELDB = FIELDB (for twenty fields)

FIELDA = FIELDA + FIELDA
FIELDB = FIELDB + FIELDB (for twenty fields)


The module consists of several procedures and one of these contains
subroutines of illogical code. I have not had the opportunity to look at
the program which calls this module, but the subroutines containing this
goofy code are not called within the procedure.

Is the calling program using the subroutines in the module? I'll know more
on Monday when I review the calling program. This module contains both the
IMPORT and EXPORT keywords.

I suspect that the original programmer was either paid by the number of
lines of code written or that these subroutines were cobbled together as
proposed code but never used.

Any ballpark ideas?



Robert Munday
Munday Software Consultants
Montgomery, AL
on assignment in Nashville, TN



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.