The mqGetBag call removes a message from the specified queue and converts the message data into a data bag.