Previous Topic: put_desc (Class Management)--Modify Class DescriptorNext Topic: unlock (Class Management)--Unlock a Class


lock (Class Management)--Lock a Class

lock a class

Syntax
class lock class [pwd=->/tt> ]  
Parameters
class

name of class to be locked May specify one of the following:

application:class - lock application singleton class

/catalog:class - lock global catalog class

pwd=- Prompt for the password used to unlock the class. If the standard input is not a terminal device, it will not print a prompt and expect only one copy of the password on 'stdin' (this can be used for batch operations, to set the password from a file).

Examples
class lock /system:MYCLASS

Lock global catalog class

class lock myapp:MYCLASS

Lock application singleton class

class lock my-app:MYSQL2 pwd=-

lock singleton class and prompt for password

Note: The 'pwd' argument is required when executed by a non-maintainer.

If the 'pwd' argument is specified, it is required to unlock the class.

When a class is locked, the following operations cannot be executed by non-maintainers:

* class branch

* class copy

* class move

* class get_desc

* export of class or catalog/application containing the class

* managing/modifying/reading of class volumes

See Application and Class Locking Reference for more information.