RE: RPG Service Program vs Include Source for Shared Subprocedures and SQL Calls

Don Brown via RPG400-L <[email protected]> Sat, 21 Mar 2026 00:21:15 +0000
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <SYBP282MB3558E8D0B4895B3A302A6AD4E94DA@SYBP282MB3558.AUSP282.PROD.OUTLOOK.COM>
   Definitely Service Programs.

   Cheers
   Don

    

   Don Brown

   Senior Consultant
    
   [1]OneTeam IT Pty Ltd
   P: 1300 088 400

   -----Original Message-----
   From: RPG400-L <rpg400-l-bounces-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org> On Behalf Of Richard
   Schoen
   Sent: Saturday, 21 March 2026 7:13 AM
   To: [email protected]
   Subject: RPG Service Program vs Include Source for Shared Subprocedures
   and SQL Calls

   Hi All,

   In the Python, Java and .Net world I usually create Python classes, jar
   files or DLLs to contain shared functionality.

   Because most IBMi shops have an interesting mix of RPG code bases I'm
   trying to determine whether I should create a service program or use
   includes for shared functionality at a customer site.

   With service programs, write once, bind and use everywhere.

   With copy books, just include on-the-fly.

   In the past I've leaned towards copybooks, but I'm curious what others
   think. I'm a little cautious of burying SQL functionality into one or more
   service programs.

   Real-world thoughts appreciated.

   Thanks

   Regards,
   Richard Schoen
   Web: [2]http://www.richardschoen.net
   Email: richard-DiTrGpQEJGItADg8e/3/[email protected]<[3]mailto:richard-DiTrGpQEJGItADg8e/3/[email protected]>

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

   Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related
   questions.

   --
   Message protected by MailGuard: e-mail anti-virus, anti-spam and content
   filtering.
   [6]https://www.mailguard.com.au

References

   Visible links
   1. https://www.oneteamit.com.au/
   2. http://www.richardschoen.net/
   3. mailto:richard-DiTrGpQEJGItADg8e/3/[email protected]>
   4. https://lists.midrange.com/mailman/listinfo/rpg400-l
   5. https://archive.midrange.com/rpg400-l.
   6. https://www.mailguard.com.au/

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

Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.