Validation and execution
The previously acquired ‘named lock’ or ‘global lock’ is released for an SCV batch, on
successful validation and execution of the macro.
These are the execution steps:
- The macro determines the lock that is currently acquired for the batch. This can be ‘named lock’ or ‘global lock’.
- The macro releases the ‘named lock’ or ‘global lock’.
- An SCV batch with a batch name can start running if the lock is release.
- An SCV batch or SCV job that requires the ‘global lock’ can run, if SCV batches with a batch name or with the ‘global lock’ is not available.
- These are the execution rules:The status of the job is set to Error if the macro execution fails to complete.
- The macro holds the acquired ‘named lock’ or ‘global lock’ until the macro execution
reaches at a macro step with the EndSCVBatch command or until the end of the macro
execution.Note: If macro steps are not executed after the execution of EndSCVBatch command, the macro steps are executed as other macro without an SCV Batch.
- The nested SCV batches are not allowed in a macro.
- A macro can acquire two locks sequentially. However, one at a time. The second SCV batch can only start after the first SCV Batch is explicitly stopped in the macro.