System/390 assembler-language examples
This collection of topics is mostly taken from the IBM MQ for z/OS sample applications.
- Connect to a queue manager
This example demonstrates how to use the MQCONN call to connect a program to a queue manager in z/OS batch. - Disconnect from a queue manager
This example demonstrates how to use the MQDISC call to disconnect a program from a queue manager in z/OS batch. - Create a dynamic queue
This example demonstrates how to use the MQOPEN call to create a dynamic queue. - Opening an existing queue
This example demonstrates how to use the MQOPEN call to open a queue that has already been defined. - Closing a queue
This example demonstrates how to use the MQCLOSE call to close a queue. - Put a message using MQPUT
This example demonstrates how to use the MQPUT call to put a message on a queue. - Put a message using MQPUT1
This example demonstrates how to use the MQPUT1 call to open a queue, put a single message on the queue, then close the queue. - Getting a message
This example demonstrates how to use the MQGET call to remove a message from a queue. - Getting a message using the wait option
This example demonstrates how to use the wait option of the MQGET call. - Getting a message using signaling
This example demonstrates how to use the MQGET call to set a signal so that we are notified when a suitable message arrives on a queue. - Inquiring about and setting the attributes of a queue
This example demonstrates how to use the MQINQ call to inquire about the attributes of a queue and to use the MQSET call to change the attributes of a queue.
Parent topic: Code examples