SYS_STATE_JOBS_IN_GROUP
Use the SYS_STATE_JOBS_IN_GROUP script function to return the number of Jobs that are in registered status (Jobs registered in Job Groups). The script function lets you restrict the check to a particular Job or Job Group.
Syntax
SYS_STATE_JOBS_IN_GROUP ([Job[, Group]])
Parameters
-
SYS_STATE_JOBS_IN_GROUP
Counts how many Jobs are registered in a Job Group -
Job
(Optional) Name of a Job
Format: AE name, script literal or script variable -
Group
(Optional) Name of a Job Group
Format: AE name, script literal or script variable
Note: Omit both the Job and Group parameters to return the number of all registered Jobs.
Examples
The following script returns the number of all registered Jobs.
:SET &ACTIVE# = SYS_STATE_JOBS_IN_GROUP()
The following script returns the number of Jobs registered in a Job Group that is called MM.GROUP.
:SET &ACTIVE# = SYS_STATE_JOBS_IN_GROUP(,"MM.GROUP")
See also:
seealso