RESTART_UC_OBJECT

Use the RESTART_UC_OBJECT script function to repeat the execution of a task. This function restarts a task that has already been executed. You can optionally specify restart points and set flags to provide instructions for the execution of the task.

Note: This script statement causes all open transactions of the script to be written to the AE database. For more information, see Script Processing.

Important: If you use this script function on the Post Process page, a task can repeat itself and cause an infinite loop.

Syntax

RESTART_UC_OBJECT (Object Name, Reference RUN#, [Restart Point], [Flags], [Queue])

Parameters

Return Codes

The script function has the following return codes:

Tip: Use the :ON_ERROR script statement to define what happens when an error occurs. For more information, see Error Handling in Scripts.

Example

The following example repeats the last execution of a Job (JOBS.SYSTEM.CHECK). The script function includes parameters to output the generated JCL and modified variables in the activation report. The last parameter instructs the Job to wait in the Process Monitoring perspective until you manually release the Job.

:SET &RET# = RESTART_UC_OBJECT ("JOBS.SYSTEM.CHECK",LAST,,"GEN_JCL,VAR_MOD,MAN_RELEASE")

See also:

seealso

Script Elements for Handling Tasks

Script Elements for Restarting Tasks