The RunCommand macro used to run a command for a Data source. This is an extended version
of the RunSQL macro.This macro supports database commands at the cycle period level that are
not specific to the context of a scenario. The command updates static or configuration data in
SCP or external data.
This table lists the parameters used to execute the RunCommand macro at cycle period
level:
Parameter |
Description |
Data Source |
The data source for which the command is executed. Select
Database. |
Command Text |
The command to execute for the specified data source. |
The value for the Command field must be specified
in this format: RunCommand (Data Source, Command Text).
Table 1. Example
Requirement |
Parameter |
Running the "reset" command on the "Test" data source |
RunCommand("Test", "reset") |
The command is executed for the specified Data source on successful validation and execution
of the macro.
This table lists the Cycle Period status and the related validation messages:
Cycle Period status |
Scenario status |
Can Execute? |
Validation message |
Any |
Any |
Yes |
N/A |
Validation is performed when you execute the RunCommand macro. If validation fails, the macro
is aborted, and the related error message is displayed. This table lists the error messages
displayed for various validation failures:
Validation Condition |
Error Message |
RunCommand supports data source type ‘Database’ only. |
The RunCommand macro requires a data source of type Database. |
Check the data source is valid. |
data source {0} cannot be found. |