BPX4QCT (msgctl) example

The following code removes the message queue from the system. For the callable service, see msgctl (BPX1QCT, BPX4QCT) — Perform message queue control operations. For the data structure, see BPXYMSG — Map interprocess communication message queues. AMODE 31 callers use BPX1QCT (msgctl) example.
                                              
         CALL  BPX4QCT,              Message queue control (msgctl)    +
               (MSG_ID,              Input: MessageQueueID             +
               =A(IPC_RMID),         Input: Action to take     BPXYIPC +
               =AD(0),               Input: ->MSQID_DS or 0    BPXYMSG +
               RETVAL,               Return value: 0, -1               +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               MF=(E,PLIST)          ----------------------------------