Automic Workload Automation

  • 1.  V9, getting RUNID for running task (FYI)

    Posted Jan 03, 2014 04:42 PM

    I had been using SYS_ACT_ME_NR() to get the RUNID for a running task, but I have discovered I really want to use SYS_ACT_RESTART_ME_NR().  These two functions return different values when you are doing a restart.

    I wanted to share this because it is a very subtle difference, and can be critical to the proper handling of task restarts.

    Pete



  • 2.  V9, getting RUNID for running task (FYI)

    Posted Jan 03, 2014 06:30 PM

     

    And the system variable &$RUNID# behaves like SYS_ACT_ME_NR(). 

     



  • 3.  V9, getting RUNID for running task (FYI)

    Posted Jan 06, 2014 02:54 PM

    And &$RESTART_RUNID# equals SYS_ACT_RESTART_ME_NR

    The &$RUNID# is always the original job RUNID and the &$RESTART_RUNID is the RUNID of the current job. On the original run they are equal.

    And just to make restarting jobs fun if you cancel a restart with the rich client at the prompt input window your prompts revert back to the original runid prompt values on the next restart. This is only seen after the second restart when a previous prompt value was changed. I submitted this one as a bug but I was told this is how it was designed.