open MQ using c prog


I need to implement a ‘c’ prog to open a session infront of IBM MQ server.
On the MF we used to do it using EntireX and RPC.
Now, on our Linux we do not installed the EntireX.
Can I open a session using c, & to close just when performing end transaction on Adabas?
In other words, I need to read mq, & to be able to get the msg, write it on Adabas & just then perform commit
(to get it out of the queue)?