gtpg2m1xGeneral Macros

EVNWC-Wait for Event Completion

This general macro is used to wait for the completion of a named event. It is used with the EVNTC (see EVNTC-Define Internal Event) and POSTC (see POSTC-Mark Event Completion) macros.

The EVNTC, POSTC and EVNWC macros can be used to pass the contents of a core block from one ECB to another ECB.

Format




label
A symbolic name can be assigned to the macro statement.

TYPE
The type of event being waited for:

CNT
Count type event.

MSK
Mask type event.

CB
Core block oriented event.

LIST
List-type event.

Note:
See the POSTC macro for more information about these parameters.

For TYPE=CB, LEVEL must be specified and BLOCK may be specified. If BLOCK is given, the event name is retrieved from the area specified and the error code if one, is returned in the specified area.

For TYPE=LIST, the BLOCK parameter must be specified.

BLOCK=label1
An area formatted as defined in EV0BK that contains the name of the event being waited on. The area is used to return the values from the completed event. LEVEL and BLOCK are mutually exclusive except for TYPE=CB.

LEVEL=Dx
A core block reference word (CBRW) and file address reference word (D0-DF). LEVEL and BLOCK are mutually exclusive except for TYPE=CB.

ERROR=label2
A label to branch to if the event has completed with error.

NFOUND=label3
A label to branch to if the event does not exist.

Entry Requirements

Return Conditions

Programming Considerations

Examples

None.