Is it possible to use CLI to list and hold active applications?
Release : 12.x
Component : Workload Automation DE (ESP dSeries)
To list all the active applications, use this:
LISTAPPLICATION APPLICATION("*") state("active")
For holding an application in CLI, insert a TASK job. TASK by default won't complete on their own, they need to be completed by a user.
Here is an example that will insert a TASK job in an active application, if application is not active, the command will be ignored.
INSERTJOB JOBNAME("myTASK1") APPLICATION("MY_APPLICATION.1") JOBTYPE("TASK") jobparameters(" Tag(\"JOB TO HOLD THE APPLIATION\")")
Note: The insert will only affect current generation or generation defined in the command. The generation defined must be active