|
rpg400-l-request@xxxxxxxxxxxx wrote: > 4. API's for various commands (Peter.Colpaert@xxxxxxxxxx) > >I'm trying to make kind of a change management command that would enable >us to promote sources and objects from our development library to the test >or production library. > >Of course I could do this in a CLLE program, using CPYF, CRTDUPOBJ etc, >but I would like to do this in RPGLE using API's. Not only do I like RPG >more than CL, but it gives me more versatility do do SELECT's instead of >numerous IF's, etc. > >Are there API's that allow you to, for instance, move an object, move a >member (or copy + delete it), change the source type of a source member? Peter: One API that might be useful is the Rename Object (QLIRNMO) API, one of the Object APIs. It does a couple things beyond simply 'renaming' an object that can make this useful. I use that as a part of a kind of change-management I do for my own development work. Handling authorities/ownership so that the 'new' object cleanly reflects the old takes some care. I'm not sure how far you could go with what you want without resorting to CL, most likely ILE CL procedures though QCMDEXC or QCAPCMD could be useful, unless you want to get into some complex programming. Perhaps you could fake a kind of "CrtDupObj" by using a combination of some Backup & Recovery APIs? I.e., save the object then immediately restore it to where you wanted? Tom Liotta
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.