Previous Topic: Example JCLNext Topic: CXXMAINT ALTER CBSUSE (Trial Delete a Key from CBS Use)


CXXMAINT (Maintain Directory)

Use the CXXMAINT function when you want to:

Each option is discussed separately in the following sections of this chapter.

Important! Do not use the CXXMAINT DDPROD option for SQL accessible tables, or on a database containing SQL accessible tables, or on databases containing partitioned tables. Use the CA Datacom Datadictionary CATALOG transaction instead.

The CXXMAINT function protects you from destructive Directory (CXX) modification. If you run the function while any task is active against the target databases, CXXMAINT terminates without performing any modification with the following exceptions. You can use the following CXXMAINT ALTER options with a database open in a MUF:

You can also use CXXMAINT DELETE with a database open in a MUF as long as the specified table has no open User Requirements Tables. The ACCESS function can still be used, to prevent tasks from opening a database while you are running a CXXMAINT function. For more information, see ACCESS (Restricting Opens or Maintenance.

Frequent backups of the Directory are recommended. When a hardware failure or accidental destruction occurs, a current backup provides a quick method of restoring the Directory. If the backup is not current, much time can be lost in determining what maintenance transactions must be applied to bring the Directory up to date. See BACKUP CXX (Back Up Directory) for details.