AppWorx, Dollar Universe and Sysload Community

 View Only
  • 1.  Dealy Option

    Posted Jul 31, 2019 09:33 AM
    Hi All,

    I have a scenario where I want Job A to delay by 60 seconds if Schedule B is still running.
    Could anyone please help me with the options to achieve this.

    Thanks
    Shani


  • 2.  RE: Dealy Option

    Posted Aug 01, 2019 10:49 AM
    Edited by Harriet Kim Aug 01, 2019 10:49 AM
    Hi Shani,

    In the Pre-Process tab of Job A, you can put:

    :SET &RunID = GET_UC_OBJECT_NR(JSCH.B)

    :IF &RunID <> ""
    : WAIT 60
    :ENDIF

    A blank RunID means JSCH.B isn't active.

    Regards,
    Harriet