Validation and execution
A ‘named lock’ or a ‘global lock’ is acquired that ensures exclusive execution for the
SCV batch, on successful validation and execution of the macro.
These are the execution rules:
- The status of the job is set to Error if the macro execution fails to complete.
- The nested SCV batches are not allowed in a macro. If a nested SCV batch is detected, the
macro completes the execution, and this error message is logged:
’Nested SCV bathes detected.’
- 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 still remain after the execution of the EndSCVBatch command, these steps are executed as other macro without an SCV Batch.
- 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 ended in the macro.
These execution rules are applicable when the Batch Name parameter is specified:
- The macro checks if other SCV batches with the same batch name, or if another SCV batch or SCV job is running with the ‘global lock’.
- The macro waits until the ‘named lock’ is released, if another SCV batch is running with the same batch name.
- The macro waits until the ‘global lock’ is released, if another SCV batch or SCV job is running with ‘global lock’.
- The macro acquires the ‘named lock’ and completes with success, if other SCV batches are
running with the same batch name, or a SCV batch or SCV job is running with the ‘global
lock’.Note: SCV batches with the same name and SCV batch or SCV job that requires the ‘global lock’ cannot be initiated until the current SCV batch ends.
These execution rules are applicable when the Batch Name parameter is not specified:
- The macro checks if other SCV batch is running with a batch name, or if another SCV batch or SCV job is running with the ‘global lock’.
- The macro waits until all ‘named lock’ is released, if any additional SCV batch is running with a batch name.
- The macro waits until the ‘global lock’ is released, if another SCV batch or SCV job running with the ‘global lock’.
- The macro acquires the ‘global lock’ and completes with success, if other SCV batches are
running with a batch name or a SCV batch or SCV job is running with the ‘global lock’.Note: SCV batches with a name and SCV batch or SCV job that requires the ‘global lock’ cannot be initiated until the current SCV batch ends.