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



Yup - SUBR23 comes to mind.

While I was with IBM I wrote a new one to assist in conversions - or Y2K or something like that. Too many sleeps since then.


Jon

On Apr 19, 2021, at 3:31 AM, Gad Miron <gadmiron@xxxxxxxxx> wrote:


I vaguely remember that RPG II had an EXIT Op Code you could use to call
external
(Assembly?) Subroutines. used that for sorting or conversions me think.

Gad





date: Sun, 18 Apr 2021 10:32:24 +1000
from: Frank Kolmann <Frank.Kolmann@xxxxxxxxx>
subject: RPG runtime (was Upcoming spring 2021 RPG enhancements)

RPG evolved from a very simple language. I was stunned when I found in
RPG II one could add only 2 variables together in one line of cpde.
RPG II III IV never had a concept of functions that you could import
into your code.
There were no standard or other librarys one could access.
All I/O functions and op codes were built in for want of a better term ,
( is that? runtime?)
There was some ability to code SPECIAL routines defined on the F (file)
specs but hardly no one knew how to do that.
To compare RPG to C is not imo a comparison that makes sense.
With C one has capabilities to code compilers and operating systems.?
RPG never had that.
RPG was perfect for coding solutions to business requirements.
I found C was a bit like using a military tank to go to your local
shops, way to much overkill to solve business issues.
I found simply getting C code to compile was next to impossible.
I could not write C code like I wrote RPG.? I could code an entire RPG
program then use the compiler to flush out coding errors.
With C I needed to start with a very small bit of C code that compiled,
then add a line or two and compile that.
It was the only way I could construct a C program , I needed hundred or
even thousands of compilations.
Luckily todays C compilers are very fast so C coding in that manner was
feasible.
When you throw OOP into the ring RPG never had that.
Only relatively recently did RPG ILE even have a concept of functions.
It was only when I learnt C did I begin to understand what functions
were, what library functions were etc.
I am old and retired from coding but I wonder, do we really need to
convert RPG from a family car into a military tank.

Frank



--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


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.