BPX4PTQ (pthread_quiesce) example

The following code terminates all other pthreads in the caller's process. For the callable service, see pthread_quiesce (BPX1PTQ, BPX4PTQ) — Quiesce threads in a process. For the data structure, see BPXYCONS — Constants used by services. AMODE 31 callers use BPX1PTQ (pthread_quiesce) example.
                                              
         CALL  BPX4PTQ,              pthread_quiesce                   +
               (=A(QUIESCE_TERM),    Input: Quiesce type      BPXYCONS +
               =AD(0),               Input: User data - Catch data PPSD+
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               MF=(E,PLIST)          ----------------------------------