BPX1CSE (cond_setup) example

The following code sets up the invoker to suspend processing until any of the specified events (CW_INTRPT or CW_CONDVAR) occurs. The BPX1CTW (cond_timed_wait) or BPX1CWA (cond_wait) service is used to actually suspend processing. For the callable service, see cond_setup (BPX1CSE, BPX4CSE) — Set up to receive event notifications. AMODE 64 callers use BPX4CSE (cond_setup) example.
                                              
         MVC   EVENTLIST,=A(CW_INTRPT+CW_CONDVAR)                       
         CALL  BPX1CSE,              Condition setup                   +
               (EVENTLIST,           Input: Event list          BPXYCW +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------