Automic Workload Automation

 View Only
  • 1.  the function SYS_STATE_JOBS_IN_GROUP doesn't work

    Posted Nov 13, 2019 04:22 AM
    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


  • 2.  RE: the function SYS_STATE_JOBS_IN_GROUP doesn't work

    Posted Nov 15, 2019 08:08 AM

    ​Hi,

    This doesn't look like a question to me but a rather qualified bug report.

    Thus: Did you file a support ticket?

    Br,
    Carsten




  • 3.  RE: the function SYS_STATE_JOBS_IN_GROUP doesn't work
    Best Answer

    Posted Nov 15, 2019 08:16 AM
    Hi,

    Yes. But for the moment, I don't receive answer.

    This post is just to know if another person is using this function with same issue.


  • 4.  RE: the function SYS_STATE_JOBS_IN_GROUP doesn't work

    Posted Nov 15, 2019 08:49 AM
    ​Hi,

    Ah, okay, fair enough then. Just wanted to make sure the best channels are being used.

    Have not encountered this issue before myself, but have seen similar issues with script functions so I'm curious what will come out of it.

    Best,
    Carsten