|
Try this CL code: PGM PARM(&LIBNAME &NEWOWN) DCL VAR(&LIBNAME) TYPE(*CHAR) LEN(10) DCL VAR(&NEWOWN) TYPE(*CHAR) LEN(10) DCLF FILE(QADSPOBJ) DSPOBJ: DLTF FILE(QTEMP/OBJD) MONMSG MSGID(CPF2105) DSPOBJD OBJ(&LIBNAME/*ALL) OBJTYPE(*ALL) + OUTPUT(*OUTFILE) OUTFILE(QTEMP/OBJD) OVRDBF FILE(QADSPOBJ) TOFILE(QTEMP/OBJD) SECURE(*YES) RCV: RCVF MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(EXIT)) IF COND(&ODOBOW *EQ &NEWOWN) THEN(GOTO + CMDLBL(RCV)) CHGOBJOWN OBJ(&LIBNAME/&ODOBNM) OBJTYPE(&ODOBTP) + NEWOWN(&NEWOWN) MONMSG MSGID(CPF320B CPF2298) EXEC(GOTO CMDLBL(MSG)) MONMSG MSGID(CPF2226 CPF22BE) GOTO CMDLBL(RCV) MSG: SNDPGMMSG MSG('Error changing object ownership for + &ODOBNM in library &LIBNAME. Object is a + &ODOBTP') GOTO CMDLBL(RCV) EXIT: ENDPGM Somewhat crude but I wrote it when I first started coding (took long enough to find too was on a 1/4 inch tape I hadn't looked at for ages). I'm sure you can clean it up but essentially it works. James Turnbull AS/Tech Consulting David Murphy wrote: > Is there a way I can change the ownership of a group of objects from one > user profile to another in one fell swoop. I was sure I had done that once > but now I only seem to be able to do one at a time-very tedious with lots > of objects. > > David Murphy > Oregon State Scholarship Commission > (541) 687-7433 > david.a.murphy@state.or.us > > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@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.