Previous Topic: Attaching a TaskNext Topic: External Requests


Time-Delayed Tasks

You may want to initiate a nonterminal task, but your processing needs require that it not be concurrent with the issuing task. For example, the time-delayed task may compete for resources with the issuing task. DC allows you to initiate a task at the end of a specified period of time.

Steps to Initiate a Time-Delayed Task

To initiate a time-delayed task, perform the following steps:

  1. Initiate all appropriate fields.
  2. Issue a SET TIMER statement that specifies the START parameter, the time interval (in seconds), the time-delayed task's task code, the timer ID, and the variable-storage location of any data to be passed to the time-delayed task.