+

Search Tips | Advanced Search

Save IBM MQ data on IBM i

Save IBM MQ data after removing unwanted FDC, trace, and JOB files.


Before starting

We need to have completed the tasks to remove unwanted and indoubt messages and quiesced IBM MQ.


About this task


Procedure

  1. Create a save file for every queue manager library on the system. To do so, issue the command:
    CRTSAVF FILE(QGPL/ queue_manager_library )
    
    where the queue_manager_library name consists of the name of the queue manager preceded by QM.
  2. Save your queue manager libraries into the save files. To do so, issue the commands:
    SAVLIB LIB( queue_manager_library ) DEV(*SAVF)
    SAVF(QGPL/ queue_manager_library )
    
  3. Remove all unwanted FDC data from directory:
    QIBM/UserData/mqm/errors
    
  4. Remove old FDC files with the command:
    RMVLNK OBJLNK('/QIBM/UserData/mqm/errors/*.FDC')
    

    This command cleans up all files with an extension of 'FDC' in the IFS.

  5. Remove old JOB files with the command:
    RMVLNK OBJLNK('/QIBM/UserData/mqm/errors/*.JOB')
    
    This command cleans up all files with an extension of 'JOB' in the IFS.
  6. Remove all unwanted trace data from directory, or remove the whole directory:
    QIBM/UserData/mqm/trace
    
  7. Remove all trace files with the command:
    RMVLNK OBJLNK('/qibm/userdata/mqm/trace/*')
    
  8. Create a save file for IBM MQ IFS data. To do so, issue the command:
    CRTSAVF FILE(QGPL/QMUSERDATA)
    
  9. Save the IBM MQ IFS data, using the command:
    SAV DEV('/QSYS.LIB/QGPL.LIB/QMUSERDATA.FILE') OBJ('/QIBM/UserData/mqm')
    
  10. If we are going to run IBM MQ on a new machine, transfer the save files to the new machine.

Parent topic: Migrating a queue manager to the latest version on IBM i

Last updated: 2020-10-04