BPX1PTB (pthread_cancel) example

The following code generates a cancelation request for the target thread (THID). For the callable service, see pthread_cancel (BPX1PTB, BPX4PTB) — Cancel a thread. AMODE 64 callers use BPX4PTB (pthread_cancel) example.
                                              
         CALL  BPX1PTB,              pthread_cancel                    +
               (THID,                Input: Thread ID                  +
               RETVAL,               Return Value: 0, -1, or Buf length+
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------