BPX1MDT (shmdt) example

The following code detaches a shared memory segment. For the callable service, see shmdt (BPX1MDT, BPX4MDT) — Detach a shared memory segment. For the data structure, see BPXYSHM—Map interprocess communication shared memory segments. AMODE 64 callers use BPX4MDT (shmdt) example.
                                              
         CALL  BPX1MDT,              Shared memory segment detach      +
               (SEGADDR,             Input: Shared memory segment addr +
               RETVAL,               Return value: 0, -1 or value      +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------