CL commands, using the CRTMQMQ command, creating local queues, examples, using WRKMQMQ for local queues, using the WRKMQMQ command" /> Examples of creating a local queue

 

Examples of creating a local queue

To create a local queue from the command line, use:

  1. The Create MQM Queue (CRTMQMQ) command

  2. The Work with MQM Queues (WRKMQMQ) command, followed by F6

 

Creating a local queue using the CRTMQMQ command

  1. Type CRTMQMQ on the command line and press the

    F4 key.

  2. On the Create MQM Queue panel, type the name of the queue that you want to create in the

    Queue name field.

    To specify a mixed case name, you enclose the name in apostrophes.

  3. Type

    *LCL in the Queue type field.

  4. Specify a queue manager name, unless you are using the default queue manager, and press the

    Enter key. Further settings for a local queue are displayed (see Figure Figure 1) with the fields containing the default values. We can overtype any of these values with a new value.

    Scroll forward to see further fields. The options used for clusters are at the end of the list of options.

  5. When you have changed any values, press the

    Enter key to create the queue.

    Figure 1. Create MQM Queue initial panel
                               Create MQM Queue (CRTMQMQ)
     
     Type choices, press Enter.
     
     Queue name . . . . . . . . . . . > TEST.QUEUE.LCL
     
     Queue type . . . . . . . . . . . > *LCL          *ALS, *LCL, *MDL, *RMT
     Message Queue Manager Name . . .   MY.QUEUE.MANAGER__________________________
     ___________________________________
     Replace  . . . . . . . . . . . .   *NO_          *NO, *YES
     Text 'description' . . . . . . .   '_________________________________________
     ___________________________________'
     Put enabled  . . . . . . . . . .   *YES____      *SYSDFTQ, *NO, *YES
     Default message priority . . . .   5_________    0-9, *SYSDFTQ
     Default message persistence  . .   *NO_____      *SYSDFTQ, *NO, *YES
     Process name . . . . . . . . . .   '________________________________________
     _____
     Triggering enabled . . . . . . .   *NO_____      *SYSDFTQ, *NO, *YES
     Get enabled  . . . . . . . . . .   *YES____      *SYSDFTQ, *NO, *YES
     Sharing enabled  . . . . . . . .   *YES____      *SYSDFTQ, *NO, *YES
                                                                            More...
     F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display
     F24=More keys
     

 

Creating a local queue using the WRKMQMQ command

  1. Type WRKMQMQ on the command line.

  2. Enter the name of a queue manager

  3. If you want to display the prompt panel, press

    F4.

    The prompt panel is useful to reduce the number of queues displayed, by specifying a generic queue name or queue type.

  4. Press the

    Enter key and Figure Figure 2 is displayed.

    Figure 2. Work with MQM Queues panel
                                  Work with MQ Queues                               
                                                                                    
     Queue Manager Name . . :   common                                              
                                                                                    
     Type options, press Enter.                                                     
       2=Change    3=Copy    4=Delete   5=Display   8=Work status                   
       12=Work with messages 13=Clear...                                            
                                                                                    
                                                                                    
     Opt  Name                                              Type  Depth   Jobs      
          SYSTEM.ADMIN.CHANNEL.EVENT                        *LCL      0      0      
          SYSTEM.ADMIN.COMMAND.QUEUE                        *LCL      0      0      
          SYSTEM.ADMIN.PERFM.EVENT                          *LCL      0      0      
          SYSTEM.ADMIN.QMGR.EVENT                           *LCL      1      0      
          SYSTEM.AUTH.DATA.QUEUE                            *LCL     29      1      
          SYSTEM.CHANNEL.INITQ                              *LCL      0      1      
          SYSTEM.CHANNEL.SYNCQ                              *LCL      1      0      
          SYSTEM.CICS.INITIATION.QUEUE                      *LCL      0      0      
          SYSTEM.CLUSTER.COMMAND.QUEUE                      *LCL      0      1      
                                                                            More... 
     Parameters for options 2, 3, 4, 5, 12, 13, 14, 15, 16 or command               
     ===>                                                                           
     F3=Exit   F4=Prompt   F5=Refresh   F6=Create   F7=Filter       F9=Retrieve     
     F11=Change View   F12=Cancel    F16=Repeat find   F17=Find   F24=More keys     
     

  5. Press

    F6 to create a new queue; this takes you to the CRTMQMQ panel. See Creating a local queue using the CRTMQMQ command for instructions on how to create the queue.

    When you have created the queue, the Work with MQM Queues panel is displayed again. The new queue is added to the list when you press

    F5=Refresh.