Re: New Idea about Rpg program, copy members and RDI
Brad Stone <[email protected]>
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <CAAGV8Oc6hMzvzN6TNF_XF2XvyrjMS_GDn3PqjQ4sFnEwJ62RnQ@mail.gmail.com> |
I agree. If it's local but used in more than one place, it can be a service program outside of all other programs. Seems like the bad habits of copying routines into every program like the olden days. But I could be misunderstanding. On Wed, Dec 10, 2025 at 10:19 AM Charles Wilt <[email protected]> wrote: > Why would you have functions in a /COPY member? > > I mean, I've seen it done by people that don't understand ILE in code I've > inherited... > > But IMHO, it's a very bad practice. > > Charles > > On Wed, Dec 10, 2025 at 9:01 AM Marco Facchinetti < > [email protected]> wrote: > > > Cross posted in Wdsc list. > > > > In an effort to reduce duplicate code between similar programs with > > different purposes, we use copy members to contain the common parts. > These > > include definitions, but also routines and functions. > > When editing copy members, the content assistant doesn't work because it > > doesn't have the context. Hence the idea of being able to edit copy > members > > directly in the main source code: > > > > https://ibm-power-systems.ideas.ibm.com/ideas/IBMI-I-4740 > > > > Best regards > > -- > > Marco Facchinetti > > > > Mr S.r.l. > > > > Tel. 035 962885 > > Cel. 393 9620498 > > > > Skype: facchinettimarco > > -- > > 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: [email protected] > > Before posting, please take a moment to review the archives > > at https://archive.midrange.com/rpg400-l. > > > > Please contact [email protected] for any subscription related > > questions. > > > > > -- > 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: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/rpg400-l. > > Please contact [email protected] for any subscription related > questions. > > -- 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: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l. Please contact [email protected] for any subscription related questions.