|
Œ Hello Emilio, You wrote: >Hi, I had to make some changes in a database and that required me to >re-compile almost all the programs in a library. I was going to code a >program to do rebuild all my application using API's, but, is a real mess >with all the binding directories, modules, programs, etc. Does anybody >know if there is a easier way to retrieve the information for the already >created programs to do a CRTMOD or a CRTPGM or CRTBNDRPG according to the >object? Yes. You need to buy a change management system. Even a one-man shop should be using a change management system (even if it's just an in-house one). Failing that you can use the QBNLPGMI (List ILE Program Information), QBNLMODI (List Module Information), QBNLSPGM (List Service Program Information), QBNRMODI (Retrieve Module Information), QCLRPGMI (Retrieve Program Information), and QBNRSPGM (Retrieve Service Program Information) APIs to determine more than you ever want to know about the objects. You could also seriously rethink your binding directory design to simplify building the application. For instance, a single binding directory with all *SRVPGMs, another binding directory with all service program *MODULEs (used when building the service programs), and one binding directory with all program modules and bind-by-copy modules, should simply things. Depending on how you've designed the application you may find it easier to use one binding directory per program which contains only the modules used by that program. You would still keep the service programs in a separate binding directory. What you want to achieve is the ability to do: CRTSRVPGM SRVPGM(xxx) BNDDIR(srvpgmmod) CRTPGM PGM(yyy) BNDDIR(pgmmod srvpgm) or possibly: CRTPGM PGM(zzz) BNDDIR(zzz srvpgm) However, getting to that stage will take some planning. Regards, Simon Coulter. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» «» FlyByNight Software AS/400 Technical Specialists «» «» Eclipse the competition - run your business on an IBM AS/400. «» «» «» «» Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ «» «» Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au \ / «» «» X «» «» ASCII Ribbon campaign against HTML E-Mail / \ «» «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
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.