When you have started the QM2 queue manager, you can create a local queue called Q2.
mqe_script_appq -create -qname Q2
This command creates a basic local queue called Q2, on the QM2 queue manager.
For more information on using Java or C to create a local queue, see Configuring local queues. For examples in Java™ and C, see Java and C.