|
When I see a "problem" like this I am reminded of an old programmer I met
once.
He was writing a program which needed 48 identical fields to contain numeric
values.
A portion of the program looked somewhat like this:
COLOR IFEQ 1
ADD 1 CNT01
ENDIF
COLOR IFEQ 2
ADD 1 CNT02
....
and on and on to 48
Feeling bad about the programmer being left behind, I taught him about
ARRAYS. He was delighted and decided to put his new knowledge into use.
Few hours later I checked up on him to see how things were going. Yes, he
was using arrays! Now the code looked more like this.
COLOR IFEQ 1
ADD 1 CNT,01
ENDIF
COLOR IFEQ 2
ADD 1 CNT,02
....
and on and on to 48
My teachings had only added one line to his program, the definition of the
array.
A program massing 40000 lines must be lacking Do loops, Arrays, or sub
programs to be called. There must be a way to reconstruct such monsters to
include reusable subroutines and such.
Parameters can be passed within Data structure.
Editing and maintaining such program must be virtually impossible. How big
would the compiled object be?
Using smaller objects can make the whole application easier to maintain.
What is this program supposed to do anyway?
At least it apperars to be pretty well documented with comments!
-----Original Message-----
From: Patpong Watwanitchakorn [SMTP:patpong@zi-th.com]
Sent: Friday, February 26, 1999 4:36 AM
To: RPG400-L@midrange.com
Subject: RPG compiler Problem.... ????
Hi Folks,
I just got the below question from my friend that it seems exceed to
the
maximum number of RPG statement. Can anyone help? any tips or
technics
would be greatly appreciated.
TIA
Patpong W.
Notes, as looked at compiler printer out,
Program Source Totals
Records = 40,954
Specifications = 26,733
Table Records = 0
Comments = 14,221
> ----------
> From: Kittipong G.
> Sent: Thursday, February 25, 1999 12:17 AM
> To: patpong@zi-th.com
> Subject: RPG compiler Problem.... ????
>
> Hi Patpong,
> I found the problem about the Limit of RPG400 Compiler on OS400
V4R2. We
> have one RPG program that too many statements about 30,000 -
40,000
> lines. and also in this program has been using many 'PARM' too.
When it
> was compiled in no serious error and normally should be creat new
RPG
> Program object, but the compiler told that had an error 'CPF6301'
. I've
> already attached the last page of compiler list and last page of
RPG
> source member. Could you please ask if somebody know how to fix
this
> problem?
> Thank you .
> Regards,
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * *
* This is the RPG/400 Discussion Mailing List! To submit a new
*
* message, send your mail to "RPG400-L@midrange.com". To
unsubscribe *
* from this list send email to MAJORDOMO@midrange.com and specify
*
* 'unsubscribe RPG400-L' in the body of your message. Questions
should *
* be directed to the list owner / operator: david@midrange.com
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List! To submit a new *
* message, send your mail to "RPG400-L@midrange.com". To unsubscribe *
* from this list send email to MAJORDOMO@midrange.com and specify *
* 'unsubscribe RPG400-L' in the body of your message. Questions should *
* be directed to the list owner / operator: david@midrange.com *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.