|
The very diffrence between a PGM and an ILE SRVPGM is, that a SRVPGM has
multiple entry points: a SRVPGM is a collection of exported procedures with
shared memory. Each procedure could have private variables too.
One of the patterns, often used in Business applications are (for example)
DataAccess Modules providing readNext() read(key), update(), insert(),
delete() setOrderBy(), newCursor().... If you would try this with OPM and
programm call, you would end up with unreadable and unusable code.
Second point for ILE is, that the compiler does more work for the
programmer, compared to OPM.
Compared to C/C++/Java/C# on other platforms,
the ILE compiler does this job not very well and the IDEs and Editors are
even worse.
As an Amazon Associate we earn from qualifying purchases.
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.