Waiting On CRCR or STOQ Events

Programs written in ALGOL or COBOL85 can use predeclared variables to detect events related to CRCR or STOQ communications. These predeclared variables can be used only in WAIT and WAITANDRESET statements. These predeclared variables are not available in other languages.

The following are the ALGOL names of these predeclared events and explanations of when the system causes them. The COBOL85 names for these events are the same except that hyphens (–) are substituted for the underscores (_).

CRCR_INPUT <program name>

Caused when the specified program is ready to send CRCR data to this program.

CRCR_OUTPUT <program name>

Caused when the specified program is ready to receive CRCR data from this program.

STOQ_INPUT <STOQ parameter block>

Caused when a message appears in a specified STOQ.

STOQ_OUTPUT <STOQ parameter block>

Caused when storage space is available to send a new message in a specified STOQ.

The following paragraphs present examples of ALGOL and COBOL85 statements that use these events.