Commands (YCLRMDL - YDLTOBJTBL) › YCPYMDLOBJ (Copy Model Objects) Command › Parameters › MDLLCK
MDLLCK
This parameter specifies how the source model is to be locked during the copy operation. Only prompted if the CPYOPT parameter is set to *COPY. Values for this parameter are described in the following:
- *BYOBJECT—(default) The source model is placed in a shared lock state and all objects explicitly or implicitly required are also placed in a shared lock state.
- Using this option avoids locking the model during the copy process, however, locking objects individually involves extra processing. All objects must be available for processing to succeed, thus, the copy process will stop if any object cannot be locked.
-
- Since only a read lock is placed on required objects, it will be possible to share objects while copying them. For example, an access path can be copied and, at the same time, shared by a programmer editing a function based on that access path. It would not be possible, however, to attempt to edit the access path.
-
- Use the ERRLVL parameter to specify how many object locks may fail before stopping. This is useful when a small number of objects is involved so that they can be released and the copy process restarted. When a large number of objects is involved it may be easier to stop after the first object lock fails (ERRLVL(*NONE)), so that processing can be deferred until the whole model becomes available.
-
- *MODEL—The source model is exclusively locked for the duration of processing. No concurrent access is allowed in this state.