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



I think that this discussion is mixing things up.



There is no big difference in writing subroutines or procedures inline in a
program. Procedures may have an interface and may have local variables that
subroutines don’t have – that’s it!



Generic local subroutines or procedures can be copied into the program with
the use of the /COPY function and that has been used for decades.



Calling external programs isn’t new either. Before we had service program
we did do dynamical calls to other program. A service program is nearly
just the same since a service program can be seen as a collection of
external programs that in a service program are called procedures.



The benefit of procedures in a service program is that they share the same
global variables and thereby is able to “talk” with each other.



A service program needs pre-binding since it is a part of the ILE concept.
However it is rather easy to implement a binding strategy into an existing
system and the few challenges that follows are basically the same if you
already use /COPY for generic subroutines.



A service program also needs a binding source that enables the service
program to be backwards compatible without the need to recompile programs
that uses previous versions.



But why use service programs and why learn the basics?



Simply because service programs are all over the system and expands RPGLE
with special features that is not a part of RPGLE (HTTP, FTP, XML, JSON,
XLS, STMF etc. etc.) and they are directly comparable with imported Classes
and Methods in both C++ and JAVA.



I agree with Dieter that this has to be implemented on team level but with
a little guidance it can be done in less than a day and it is an investment
that is worthwhile.


On Sat, Dec 28, 2013 at 8:58 AM, D*B <dieter.bender@xxxxxxxxxxxx> wrote:

... maybe I should avoid to ger into political discussions...

<RPGLIST>
The reason I really think he pushed back, was a couple other programmers
complained about several other programs that were modified with procedures
and he's afraid of the push on this as well.
</RPGLIST>

The most important change from using Subroutines to writing procedures is:
programm creation is diffrent and more complicated and this will affect all
programmers in the team! If you don't use change management and if you
follow all recommendations in this list (and most of forums etc.), your
source will no more be selfcontained and you would need multiple sources to
create one programm. Besides /COPY includes you would have binding
directories and binder source and without ensuring, that this will be in
sync during the maintenance process, you might get programm changes by
accident (Pandorras box). This might happen because these ressources are
located by libl and even libl/membername.

And so the usage of procedures is a team desicion and the strategies for
programm creation have to be part of some standard and have to be assured.
It's not done by just starting to write procedures.

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





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.