+

Search Tips | Advanced Search

Manually applying required authority for commands and programs

Some IBM MQ commands rely on using IBM i system commands for creating and managing objects, files, and libraries, for example, CRTMQM (create queue manager) and DLTMQM (delete queue manager). Similarly some IBM MQ program code, for example a queue manager, relies on using IBM i system programs.


About this task

To enable this reliance, the commands and programs must either have *PUBLIC *USE authority, or explicit *USE authority to the IBM MQ user profiles QMQM and QMQMADM.

Such authority is applied automatically as part of the installation process, and we do not need to apply it yourself. However, if you encounter problems, we can set the authorities manually as described in the following steps.


Procedure

  1. Set the authorities for commands using GRTOBJAUT with an OBJTYPE(*CMD) parameter, for example:
    GRTOBJAUT OBJ(QSYS/ADDLIBLE) OBJTYPE(*CMD) USER(QMQMADM) AUT(*USE)
    
    You can set authorities for the following commands:

    • QSYS/ADDLIBLE
    • QSYS/ADDPFM
    • QSYS/CALL
    • QSYS/CHGCURLIB
    • QSYS/CHGJOB
    • QSYS/CRTJRN
    • QSYS/CRTJRNRCV
    • QSYS/CRTJOBQ
    • QSYS/CRTJOBD
    • QSYS/CRTLIB
    • QSYS/CRTMSGQ
    • QSYS/CRTPF
    • QSYS/CRTPGM
    • QSYS/CRTSRCPF
    • QSYS/DLTJRN
    • QSYS/DLTJRNRCV
    • QSYS/DLTLIB
    • QSYS/DLTMSGQ
    • QSYS/OVRPRTF
    • QSYS/RCLACTGRP
    • QSYS/RTVJRNE
    • QSYS/RCVJRNE
    • QSYS/SBMJOB
  2. Set the authorities for programs using GRTOBJAUT with an OBJTYPE(*PGM) parameter, for example:
    GRTOBJAUT OBJ(QSYS/QWTSETP) OBJTYPE(*PGM) USER(QMQMADM) AUT(*USE)
    
    You can set authorities for the following programs:

    • QSYS/QWTSETP(*PGM)
    • QSYS/QSYRLSPH(*PGM)
    • QSYS/QSYGETPH(*PGM)