Create an alert (execCommand) and insert non-selected jobs (predefined jobs)
search cancel

Create an alert (execCommand) and insert non-selected jobs (predefined jobs)

book

Article ID: 226713

calendar_today

Updated On:

Products

ESP dSeries Workload Automation - Scheduler (dSeries) ESP dSeries Workload Automation

Issue/Introduction

Trying to create an alert to run execCommand function and insert of a predefined job. It seems the command to insert job needs all the details about the job. Can one insert non-selected jobs (predefined jobs), if so what is the command?

Environment

ESP dSeries Workload Automation 12.x, 24.0

Resolution

You can use below syntax;

execCommand( 'all', APPL._name + "." + APPL._gen, "ACTION INSERTNONSELECTEDJOBS JobList\(\"JOB0\"\) DefinedApplName\(\"INSERT\"\)" );

execCommand( 'all', APPL._name + "." + APPL._gen, "ACTION INSERTNONSELECTEDJOBS JobList\(\"TASK0\"\) DefinedApplName\(\"INSERT\"\)" );

Here application name is INSERT and jobs to insert are JOB0 and TASK0.