Previous Topic: ENFC

Next Topic: LISTEN Processing

ENFC LISTEN Function

The LISTEN function allows a CLIST to pause until one or more system events occur.

ENFC LISTEN EVENT(event1[,event2,...,event9])
                        [CONT(YES|NO)]
                        [FROM(yydddhhmmssth)]
EVENT(event1, ... )

Specifies the event types (from one to nine) for which you wish to wait. These events must be defined in the CAIENF database.

CONT(YES|)NO)

Indicates the action to be taken after control returns to the CLIST.

YES

Keeps the LISTEN active after control returns to the CLIST. Note that if you specify YES, you must issue an ENFC TERM command when you finish LISTENing so that event data is not unnecessarily queued up.

NO

Starts a new LISTEN every time ENFC is called. However, any events that occurred between the time of the first and second LISTENs are not returned to you.

FROM

Specifies a recovery date and time for events that have been logged. Beginning at this date and time, CAIENF returns the logged events for which you have been listening.