Script Function: Returns the run number (RunIDAbréviation du numéro d'identification unique. Il s'agit plus précisément d'un nombre qui identifie clairement l'exécution d'une Tâche. Le RunID peut comporter entre 7 et 10 caractères . Ils sont attribués par le composant Automation Engine.) of an object activated in restart mode.
Syntax
SYS_ACT_RESTART_ME_NR()
Return code |
---|
Run number of the object in which this scriptEgalement un type d'objet distinct dans l'Automation Engine. 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 bear 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 |
---|---|
This is used to set restart points in an executable object. |
|
Determines if the object was activated in restart mode. |
Script Elements - Activation Data
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function