End IBM MQ activity on IBM i
End IBM MQ applications and connections, and remove any unwanted or indoubt messages.
About this task
Before performing a slip installation or side-by-side installation, carry out the following procedure:
Procedure
- Sign on to the system with a user profile that has *ALLOBJ special authority, for example QSECOFR.
- Stop all applications that are using the existing version of IBM MQ. To identify applications using the queue manager, use the command WRKMQM, option 22, Work with queue manager jobs, to help find them. Ignore jobs starting with AMQ* or RUN* and focus on our application job names.
- End all channels for all queue managers on the system. To do so, use the WRKMQMCHL command and select option 15.
- On each queue manager, end the command server. To do so, enter the command:
ENDMQMCSVR MQMNAME( QMGRNAME ) OPTION(*IMMED)where QMGRNAME is the name of the queue manager.- Remove any unwanted messages from your queues.
- Resolve any in-doubt messages that are held by sender or server channels. To do so, use the WRKMQMCHST command and select option 17.
- On each queue manager, save the latest media recovery checkpoint. To do so, enter the following command:
RCDMQMIMG OBJ(*ALL) OBJTYPE(*ALL) MQMNAME( QMGRNAME ) DSPJRNDTA(*YES)