Validation and execution

The specified SCV job or program is executed using the optional passed parameters in the context of the Planning Engine, on successful validation and execution of the macro.

These are the execution rules:

  • The parameter list is defined in the "-name=value" format. For example:
    RunSCV("PURGE_PLAN","-PLAN_TABLE_NAME=SC_TRANSFER_PLAN","-CYCLE_PERIOD=%app_var_scv_apsco_cycle_period_id%","-SOURCE=%app_var_scv_apsco_profile%","-SCENARIO=%app_var_scv_apsco_scenario_id%","-PLAN_TYPE=Transfer","-PLAN_CATEGORY=Transfer","-PLAN_VERSION=%app_var_scv_apsco_plan_version_publish%")
    Note: The order in which the SCV parameters are defined can vary.
  • The warnings and errors generated by SCV are logged to the SCV audit log.
  • The job status is set to error when the SCV job fails to complete.