SYS_ACT_RESTART_ME_NR

Script Function: Returns the run number (RunID) of an object activated in restart mode.

Syntax

SYS_ACT_RESTART_ME_NR ()

Return code

Run number of the object in which this script function is called.

Comments

This script function also returns the RunID of the current task when it was activated normally. Thus, it can be used without previous checking for the activation type (normal or restart) being necessary. Please bare in mind that  SYS_ACT_ME_NR reacts differently to activation from restart mode.

Example

In the following example, the run number (RunID) of a task is written in the activation report. Additional information shows whether the task was activated normally or in restart mode.

:SET &RUNNR# = SYS_ACT_RESTART_ME_NR()
:
IF SYS_ACT_RESTART = "Y"
:   
PRINT "Job with RunID &RUNNR# processed in restart mode."
:
ELSE
:   
PRINT "Job with RunID &RUNNR# processed normally."
:
ENDIF

See also:

Script element Description

:RESTART

This is used to set restart points in an executable object.

SYS_ACT_RESTART

Determines if the object was activated in restart mode.

Script Elements - Activation Data

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function