|
Hmm... you know, I wonder if that's not what I did. I forgot about binding directories. Thinking about it, yeah, I think I had 2 service programs, the General with DATETIME and SYSTEM and then I had CARTAGE with the CARTAGE module. Then I created 2 different binding directories, CARTAGE and GENERAL, cartage contained both service programs, and GENERAL contained GENERAL. I forgot about that 3rd level. Regards, Jim Langston Programmer/Analyst Cels Enterprises, Inc. -----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of bmorris@ca.ibm.com Sent: Wednesday, August 29, 2001 10:00 AM To: rpg400-l@midrange.com Subject: RE: Procedure Management Procedures >From: "Jim Langston" <jlangston@celsinc.com> >Date: Tue, 28 Aug 2001 14:18:00 -0700 > ... >So, I had modules: >DATETIME (Date/Time routines) >SYSTEM (System API call interfaces) >CARTAGE (Specific to the Cartage application) > >Service program CARTAGE contained all 3 modules. >Service program GENERAL contained DATETIME and CARTAGE. > >So if I was writing a Cartage program I would use the CARTAGE >service program. If I was writing any other program, I would >use the GENERAL service program. > >I am not sure if this is the proper way to do it, but I felt it >was the best at the time. Jim, I don't think that's the best way to do it. That way, you have the same code in two places which is the very problem that service programs are supposed to alleviate. A better way to do it would be to have the CARTAGE service program only have the cartage-specific modules. You could have two binding directories, if you wanted to ensure that only Cartage programs used the CARTAGE service program. In your CARTAGE binding directory, put both service programs. In your GENERAL binding directory, just put the GENERAL service program. (It's ok to have the same service program in more than one binding directory, because a binding directory is just a list that's only used at compile time.) Barbara Morris _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com
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.