Previous Topic: Group DefinitionNext Topic: Sample Schedules


Action Statement Definition

When a discrete event occurs or an event occurs that is a member of a group, an action for this occurrence is triggered. This action notifies the target CTS task of the event. A default notification template is used unless the MSG parameter is coded.

WHEN(name) NOTIFY(cts.taskname) [MSG='message to send']
WHEN

Specifies a previously defined TOD event or GROUP.

NOTIFY

Specifies the name of the CTS task to notify that the event has occurred. The task name is the same name defined in a SET TASK(...) initialization statement.

MSG

(Optional) Specifies the text sent to the specific CTS task when this event occurs. If a message is not specified, the default message 'EVENT SCHD=name' is sent to the CTS task where name is replaced with the name on the WHEN statement.