SYS_ACTIVE_COUNT

Use the SYS_ACTIVE_COUNT script function to return the number of all activated tasks that are currently listed in the Process Monitoring perspective. The script function lets you limit the search to particular tasks by specifying the status, object type, object name, group and host, or a combination of these filters.

Tip: Use the Host parameter to check whether a regularly processed Job is active, to help you avoid overlapping executions. You can subsequently use :PUT_ATT to specify the target host, or the source and target host for File Transfer jobs.

Syntax

SYS_ACTIVE_COUNT (Status, Object Type [,Object] [,Group] [,Host])

Parameters

Notes:


Examples

The following examples return the number of activated objects listed in the Process Monitoring perspective, with different parameters to include only particular tasks.

The following example counts tasks that are registered for a specific group. The string FILE must appear in all task names. 

:SET &COUNT# = SYS_ACTIVE_COUNT("PREPARED", "*", "*FILE*","GRP7")

The following example retrieves the number of Jobs that use an Agent that is called UNIX01.

:SET &COUNT# = SYS_ACTIVE_COUNT("*", "JOBS", "*",,"UNIX01")

See also:

seealso

:RESTART