BTS timers
A timer is a BTS object that expires when the system time becomes greater than a specified date and time, or after a specified period has elapsed. You manage timers with TIMER commands; for example, to cause an activity to be activated at a particular time.
Note: A timer that specifies a date and time that has already
passed expires immediately. Similarly, if the requested interval is
zero, the timer expires immediately.
To define a timer, use the DEFINE TIMER command. When you define a timer, a timer event is automatically associated with it. For more information, see Atomic events.
To force a timer to expire before its specified time, use the FORCE TIMER command.
To check whether a timer has expired and, if it has, whether it expired normally or following a FORCE TIMER command, use the CHECK TIMER command.
Timer management tips
- If a piece of processing (for example, At midnight on 31st December, prepare an annual customer statement ) could result in many timers being set to expire at the same time, put the timers in groups and stagger the expiry times. Staggering the expiry times spreads the load on CICS® and improves performance.
- If you shut down CICS at regular times, and know beforehand that at certain times it is unavailable, try not to set many timers to expire at these times. The timer events all fire when CICS is restarted, which could affect CICS startup performance.