SYS_ACT_RESTART_ME_NR
Use the SYS_ACT_RESTART_ME_NR script function to retrieve the RunID of the object when it is activated in restart mode.
Syntax
SYS_ACT_RESTART_ME_NR ()
Tip: SYS_ACT_RESTART_ME_NR also returns the RunID of the current task when the task is activated normally rather than restarted.
Note: Unlike SYS_ACT_ME_NR, you can use SYS_ACT_RESTART_ME_NR without checking whether the object was activated normally or restarted.
Example
The following example retrieves the RunID of a task. Depending on how the task was started, the script prints information in the activation report to indicate whether the task started in restart mode or normally.
:SET &RUNNR# = SYS_ACT_RESTART_ME_NR()
:IF SYS_ACT_RESTART = "Y"
: PRINT "Job with RunID &RUNNR#
was processed in restart mode."
:ELSE
: PRINT "Job with RunID &RUNNR#
was processed normally."
:ENDIF
See also: