

Using Your Development Environment › Controlling User Access › Changing Model Ownership
Changing Model Ownership
The owner of a model can transfer ownership with the Toolkit Change Object Ownership (YCHGOBJOWN) command.
For example, to change the ownership of all objects in the MYLIB library to a new YOURNAME owner, you would enter the following and press Enter:
YCHGOBJOWN OBJ(MYLIB/*ALL) OBJTYPE(*ALL) NEWOWN(YOURNAME) CHGLIBOWEN(*YES)
This example includes the following required parameters:
- OBJ(MYLIB/*ALL)—Sets the generic name of the objects whose ownership is to be changed followed by which objects in the list are to be changed.
- OBJTYPE(*ALL)—Sets the type of objects whose ownership is to be changed.
- NEWOWN(YOURNAME)—Sets the new owner of the objects. Must be the name of an existing user profile.
- CHGLIBOWN(*YES)—Ensures that the new owner owns the library as well as all objects in the library.
Copyright © 2014 CA.
All rights reserved.
 
|
|