administration, overview, MQSC commands, using MQSC commands to administer, objects" /> Administration using MQSC commands

 

Administration using MQSC commands

You use WebSphere MQ script (MQSC) commands to manage queue manager objects, including the queue manager itself, queues, process definitions, namelists, channels, client connection channels, listeners, services, and authentication information objects.

You issue MQSC commands to a queue manager using the STRMQMMQSC WebSphere MQ CL command. This is a batch method only, taking its input from a source physical file in the server library system. The default name for this source physical file is QMQSC.

WebSphere MQ for iSeries does not supply a source file called QMQSC. To process MQSC commands we need to create the QMQSC source file in a library of your choice, by issuing the following command:

CRTSRCPRF FILE(MYLIB/QMQSC) TEXT('WebSphere MQ - MQSC Source')

MQSC source is held in members within this source file. To work with the members enter the following command:

 WRKMBRPDM MYLIB/QMQSC

We can now add new members and maintain existing ones

We can also enter MQSC commands interactively, by issuing RUNMQSC or:

  1. Typing in the queue manager name and pressing the

    Enter key to access the WRKMQM results panel

  2. Selecting

    F23=More options on this panel

  3. Selecting option 26 against an active queue manager on the panel shown in Figure 4

To end such an MQSC session, type end.

Figure 4. Work with queue managers results panel
                            Work with queue managers                            
                                                                                
 Type options, press Enter.                                                     
   21=Work with NameLists     22=Work with Jobs       23=Display logs           
   24=Work with Authorities   25=Work with AuthInfo   26=MQSC ...               
                                                                                
 Opt  Name                                                      Status  Default 
      mick                                                      ACTIVE     NO   
      mike                                                      ACTIVE     NO   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                         Bottom 
                                                                                
                                                                                
 Parameters or command                                                          
 ===>                                                                           
 F3=Exit   F4=Prompt      F5=Refresh   F6=Create   F9=Retrieve   F12=Cancel     
 F16=Repeat position to   F17=Position to   F23=More options     F24=More keys