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.’
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.
This table lists the status of the supported cycle period and scenarios for which the macro can be executed:
Cycle Period Status | Scenario Status | Can Execute? |
---|---|---|
Any | Any | Yes |