BPX1QCT (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 64 callers use BPX4QCT (msgctl) example.
                                              
         CALL  BPX1QCT,              Message queue control (msgctl)    +
               (MSG_ID,              Input: MessageQueueID             +
               =A(IPC_RMID),         Input: Action to take     BPXYIPC +
               =A(0),                Input: ->MSQID_DS or 0    BPXYMSG +
               RETVAL,               Return value: 0, -1               +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------