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

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

:RESTART