Previous Topic: Re-compilation OrderNext Topic: Generic Remove Member


Generic Change Ownership

The Toolkit generic command, Change Object Ownership (YCHGOBJOWN), enables you to change the ownership of many objects, by means of a single instruction. All rights of the existing owner can be revoked at the same time. You may also change the ownership of the library containing the objects at the same time.

For instance, the following single instruction would change the ownership to QPGMR of all programs in library QGPL, as well as the ownership of the library itself, and furthermore would revoke the previous owner’s rights:

YCHGOBJOWN OBJ(QGPL/*ALL) OBJTYPE(*PGM) NEWOWNER(QPGMR) REVOKE(*YES) CHGLIBOWN(*YES)