Previous Topic: Group DefinitionNext Topic: Sample Schedules


Action Statement Definition

When a discrete event occurs, or an event that is a member of a group, an action for this occurrence is triggered. This action will notify the target CTS task of the event. A default notification template will be used unless the MSG parameter is coded. The syntax of the WHEN statement is as follows:

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

The WHEN keyword specifies a previously defined TOD event or GROUP.

NOTIFY

This parameter is required. cts.taskname 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

This optional parameter specifies the text to be sent to the specific CTS task when this event occurs. If not specified, the default message 'EVENT SCHD=name' will be sent to the CTS task where name is replaced with the name on the WHEN statement.