Check for the existence of a stop file.
Check for the existence of a stop file, sleeping between checks.
- INTERVAL
- Time interval. The time interval (in minutes) to sleep between checks for the existence of a stop file.
- DURATION
- Time duration. The total time (in minutes) to sleep before returning from this module. If the existence of stop file is detected, this module will return, even if DURATION minutes have not elapsed.
- STOPNAME
- Stop file name. The name of the stop file to be looking for, NOT including it's pathname, nor a file name suffix (".stop" is assumed).
- LOGFILE
- Log file. The name of the log file to write all processing messages to.
- STOPFLAG
- Stop flag. A flag indicating whether a stop file was found:
YES A stop file was detected NO A stop file was not detected
CHECK_STOP will sleep for 30 minutes, waking up every 5 minutes, to check for the existence of the file "filter.stop" in ADAPSTABLES. If the file exists, CHECK_STOP will return with a STOPFLAG value of "YES". If CHECK_STOP sleeps for 30 minutes without finding a stop file, it will return with a STOPFLAG value of "NO" (assigned to the TAE variable 'stopvar').
Go into an iterative loop, checking every INTERVAL minutes to see if a stop file exists. Loop until DURATION minutes have passed (return STOPFLAG=NO), or until a stop file has been detected (return STOPFLAG=YES).
An error was encountered while determining if enough time had passed. Contact the system administrator if this error persists.
The existence of the stop file could not be determined. Contact the system administrator if this error persists.
The module could not sleep for the specified amount of time. Ensure that a reasonable amount of time was specified.