The runaway interval is the amount of time the DC/UCF system permits a task to execute without returning control to the system. A task returns control to the system for each system service call and each database operation. When the runaway interval expires, the system abnormally terminates the task.
How You Define a Runaway Interval
Use the RUNAWAY INTERVAL parameter of the system generation SYSTEM statement to specify the runaway interval or to disable the runaway-interval mechanism. You can use the RUNAWAY parameter of the DCMT VARY TIME command at runtime to override the system generation specification.
The runaway interval is useful for detecting and terminating looping programs. However, this mechanism does not catch all tasks that contain errors in program logic. For example, the runaway-interval mechanism will not detect a loop in which the same database operation is performed repeatedly.
Program loops that include system service calls or database operations can be detected by means of limits on task resource usage.
More Information:
|
Copyright © 2014 CA.
All rights reserved.
|
|