[IBMi]

Save IBM MQ data on IBM i

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

Before you begin

You 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 your 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 your IBM MQ IFS data, using the command:
    
    SAV DEV('/QSYS.LIB/QGPL.LIB/QMUSERDATA.FILE') OBJ('/QIBM/UserData/mqm')
    
  10. If you are going to run IBM MQ on a new machine, transfer the save files to the new machine.