|
Igor, If the procedure is called repeatedly, put it in a service program. Procedure calls, either in the same module or in an external service program are much faster than calls to an external program. HTH, Charles > -----Original Message----- > From: Igor.Beslic@xxxxxxxxxxxx [mailto:Igor.Beslic@xxxxxxxxxxxx] > Sent: Thursday, August 26, 2004 9:35 AM > To: rpg400-l@xxxxxxxxxxxx > Subject: ServicePrograms VS normal Programs > > > Hello everybody! > > I read some articles abouth service programs and now I am > wondering is it > better to make a service program with collection of > subprocedures that > will be repeatedly called (with callP) from other programs, or is it > better to have every subprocedure as one rpg program (and > call it with > call). What is diference in performance? What is exactly > happening when an > program calls subprocedure from service program with callP > and what is > happening when program calls another program with call and > parametar list. > > I am asking this because I am Java programer and fresh RPG > programer and > most of RPG things I learned from IBM's student books and > Sourcers Guide, > but my collegues (who code in RPG all their life) have totaly > diferent > aproach that doesn't meet any ruels (described in RedBook) of > advanced and > modern coding. > > Thanks, Igor. > -- > This is the RPG programming on the AS400 / 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 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.