Use this record-level keyword to specify an interval of time for your program to wait before performing some specified function.
To set the timer, your program issues an output operation with the TIMER keyword in effect.
TIMER(HHMMSS | &field-name);
The following keywords cannot be specified with TIMER:
ALWWRT |
ENDGRP |
RCVCONFIRM |
RCVTRNRND |
TIMER overrides the WAITRCD parameter on the Create ICF File (CRTICFF), Change ICF File (CHGICFF), and Override ICF File (OVRICFF) commands. The WAITRCD parameter value is ignored during the interval that the timer function is in effect.
Option indicators are not valid for this keyword.
The following example shows how to specify the TIMER keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A R RCD1 TIMER(002512) A R RCD2 TIMER(&FIELD1); A FIELD1 6S P A A
On an output operation to RCD1, the timer will be set to 0 hours, 25 minutes, and 12 seconds. On an output operation to RCD2, the timer will be set to the value that has been set in FIELD1.