If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
There should be no performance difference... of course this is all relative to what program you are describing. But the same logic should pretty much boil down to the same machine level code and therefore be relatively equivalent. In fact, I'm guessing there are better optimizations for RPGLE code than RPG. Then again, you need to give more detail because the LE in RPGLE implies you are using service programs... is that true in this question?
RPGLE should be slightly faster (at least on sub-sequent calls)! When using RPGIII and leaving the program with *INLR = *ON, the program is removed from memory. The next time the program is called the complete opening process (allocating storage for the variables, opening the files etc) must be executed. RPGIV programs on the other side are not removed from memory until the activation group in which they are executed is reclaimed even though the program is ended with *INLR=*ON. To reclaim the a named activation group the CL command RCLACTGRP must be explicitly executed. Programs running in a new activation group (each time the program gets called the complete open process must be performed) can be compared with RPGIII programs. ILE Programs running in the Deault Activation Group cannot be removed from memory, because the default activation group can neither be closed with RCLACTGRP nor RCLRSC but only when the job ends.
For all subsequent calls (in the same activation group) only the already allocated storage gets reinitialized.
When using ILE techniques, i.e. calling procedures located in modules or service program, the first activation might be slower, because the service programs must also be resolved and moved into memory, but then calling a procedure (in a service program) is almost as fast as calling a subroutine.
In either way: Forget about RPGIII it is an outdated technology.
The successor is RPGIV (sometimes also refered as ILE RPG, even though ILE is rather a concept than a language), which is available since almost 20 years now.
Birgitta
Last edited by B.Hauser; August 16, 2012, 11:42 PM.
How about in regards to the maintenance of the code and its all about the maintenance of some crappy code from 3+ years and the DB is gone.
When I see RPG III code I first have to find some kittens that I want to punch (i said want to , not actually do). Then after driving around town for 30 minutes and start looking at the code, I am sad to see so many Gotos and cebEq and will someone buy a dam subroutine that has a meaning full name. Also the nesting that is a bother to read.
Now what makes the new rpg faster?
LongFieldNames
SubProcudures / ILE
SQL
Running Java
/free
/free
/free
cleaner nesting
better DS (is the overlay allowed in III?)
its now 2012
Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply
better DS (is the overlay allowed in III?)
its now 2012
you could overlay by using from/to positions in any DS but there was no overlay keyword, etc. but 500 years ago when i programmed RPG III i had to use DS all the time
I'm not anti-social, I just don't like people -Tommy Holden
I'm so glad that I'm so young I've never had to program in RPGIII
Or even worse RPGII!
But I need to admit, a well structured RPGIII program is far better than a badly structured ILE Program or a badly structured program written in an OO language.
Nevertheless I don't want to go back anymore!
A few years ago I had to write a couple of programs for a customer. He first insisted in RPGIII, but finally I could convince him to use RPGLE (but without free format, ILE concepts and the worst thing at all NO embedded SQL). It was a real pain.
Or even worse RPGII!
But I need to admit, a well structured RPGIII program is far better than a badly structured ILE Program or a badly structured program written in an OO language.
Nevertheless I don't want to go back anymore!
A few years ago I had to write a couple of programs for a customer. He first insisted in RPGIII, but finally I could convince him to use RPGLE (but without free format, ILE concepts and the worst thing at all NO embedded SQL). It was a real pain.
Birgitta
As Bryce said a couple of times ... " I think I just vomited in my mouth a little."
Regards
Kit http://www.ecofitonline.com
DeskfIT - ChangefIT - XrefIT
___________________________________
There are only 3 kinds of people -
Those that can count and those that can't.
Comment