SYS_STATE_JOBS_IN_GROUP

Script Function: Returns the number of jobs that are registered in groups

Syntax

SYS_STATE_JOBS_IN_GROUP ([Job[, Group]])

Syntax

Description/Format

Job

Name of a job
Format: AE name, script literal or script variable

Group

Name of a group
Format: script literal, object name or script variable


Return code

Number of jobs registered for groups

Comments

This functions retrieves the number of jobs which show the status "Registered". The parameters may to used to selectively indicate a particular job or group whose number should be retrieved.

Example

The first example retrieves all registered jobs.

:SET &ACTIVE# = SYS_STATE_JOBS_IN_GROUP()

The second example supplies all jobs registered for the group "MM.GROUP".

:SET &AKTIV# = SYS_STATE_JOBS_IN_GROUP(,"MM.GROUP")

See also:

Script element Description
SYS_STATE_ACTIVE Checks if an object has already been activated

SYS_STATE_JOB_ACTIVE

Checks if a job has already been activated
SYS_STATE_JP_ACTIVE Checks if a workflow has already been activated

Script Elements - Activate Objects

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by function