Hi,
The function SYS_STATE_JOBS_IN_GROUP doesn't work as expected. It always return 0000. Even if jobs exist in status registered in the JOBG.
The script is very simple :
:SET &Group_name# = "JOBG.TEST"
:SET &isActive# = SYS_STATE_ACTIVE(JOBG, "&Group_name#")
:PRINT "Status is &isActive#"
:IF &isActive# = "N"
: PRINT "&Group_name# is not running"
:ENDIF
:SET &Group_name# = "JOBG.TEST"
:SET &nbJobActif# = SYS_STATE_JOBS_IN_GROUP(,&Group_name#)
:PRINT "Number of registered job in &Group_name# is &nbJobActif#"
On the monitoring view, I can see jobs in status registered in the JOBG.TEST
The result of the script is :
2019-11-13 09:50:25 - U00020408 Status is Y
2019-11-13 09:50:25 - U00020408 Number of registered job in JOBG.TEST is 0000