WAIT EVENT - IBM Mainframe

« Previous Topics
Post
Delay
Formattime
Next Topics »
Start
Retrieve
Cancel

The execution of the WAIT EVENT command will cause the issuing task to wait for an event to occur. The command synchronizes a task with the completion of an event initiated by the same task or by another task. The event initiated might be the posting, at expiration time, of a timer event control area provided in response to a POST command. The command provides the application program a way of returning control to CICS until such time as an event that is being waited on is completed. The syntax of the command is given below:

WAIT EVENT

ECADDR (ptr_value) is a Fullword binary (PIC S9(8) COMP) pointer value containing the address of the timer event control area that must expire prior to the task continuing. This value is obtained from the SET option of the POST command that creates the timer event control area.

The main handle condition for this command is INVREQ. It occurs for any of the following reasons:

  • The address for the timer event control area is above the 16MB line for an application program executing in 31-bit mode on MVS/ESA. Should this occur, execute the task control command WAIT EXTERNAL ECBLIST to avoid this problem.
  • The pointer value is zero (X'000000001)
  • The address for the timer event control area is above the 16MB line for an application program executing in 24-bit mode on MVS/ESA.
  • The address for the timer event control area is not aligned on a fullword boundary. The default action is the abnormal termination of the task.
« Previous Topics
Post
Delay
Formattime
Next Topics »
Start
Retrieve
Cancel

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM Mainframe Topics