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.
Procedure
-
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
.
-
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 )
-
Remove all unwanted FDC data from directory:
-
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.
-
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.
-
Remove all unwanted trace data from directory, or remove the whole directory:
-
Remove all trace files with the command:
RMVLNK OBJLNK('/qibm/userdata/mqm/trace/*')
-
Create a save file for IBM MQ IFS data. To do so, issue the command:
CRTSAVF FILE(QGPL/QMUSERDATA)
-
Save your IBM MQ IFS data, using the command:
SAV DEV('/QSYS.LIB/QGPL.LIB/QMUSERDATA.FILE') OBJ('/QIBM/UserData/mqm')
-
If you are going to run IBM MQ on a new machine, transfer the save files to the new machine.