Warm tip: This article is reproduced from serverfault.com, please click

How to unload the MQ queue records into the file which is of readable format?

发布于 2021-01-08 16:46:12

I have a MQ queue which has 2K odd records which needs to be unloaded into a file and check why these were not consumed by our INBOUND process. And I tried to unload the records into a file using the below command example:

qload -m ABCDE -iQueue1 -f/var/tmp/Queue1.qload

And further I tried to zip the file in linux. extarcted it into windows and when I open the file in windows it is not readable.

Could you kindly suggest any command to unload a queue into file with redable form?

Questioner
Sneha
Viewed
12
8,876 2021-01-11 23:44:33

The below command can be used to make files readble:

qload -fDEBVRPHV.CIBREP.DEAD.LETTER.qload_1 -fredable_file -dA 
qload -fDEBVRPHV.CIBREP.DEAD.LETTER.qload_1 -fredable_file_trial -da

where :
-d <Display Options>]
a         Add ASCII columns to HEX file
A         Write output file in ASCII lines rather than HEX