Author |
Message
|
harimhkr |
Posted: Tue Mar 21, 2017 9:33 am Post subject: Reg q tool for mqversion 9 |
|
|
Novice
Joined: 08 Jan 2013 Posts: 22
|
looks like the q tool(ma01) is not working for mq version 9 for loading and unloding the queue.
is there a similar command line tool we can use to load the queue from a file.
thanks
Hari |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
mqjeff |
Posted: Tue Mar 21, 2017 9:43 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
harimhkr |
Posted: Tue Mar 21, 2017 9:50 am Post subject: |
|
|
Novice
Joined: 08 Jan 2013 Posts: 22
|
Weare trying to load an xml file and we are getting an error saying its not a dmpmqmsg file. how do we upload an xml or a txt file from command line.
the dmpmqmsg is working for the loading the messages that are downloaded using dmpmqmsg |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
fjb_saper |
Posted: Tue Mar 21, 2017 2:10 pm Post subject: |
|
|
![](images/avatars/gallery/misc/2.gif) Grand High Poobah
Joined: 18 Nov 2003 Posts: 20696 Location: LI,NY
|
harimhkr wrote: |
Weare trying to load an xml file and we are getting an error saying its not a dmpmqmsg file. how do we upload an xml or a txt file from command line.
the dmpmqmsg is working for the loading the messages that are downloaded using dmpmqmsg |
Have you tried using RFHUtil(c) in interactive?
If you look well at all the bells and whistles of dmpmqmsg, I'm sure you'll find a way to do what you want... ![](images/smiles/innocent.gif) _________________ MQ & Broker admin |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
hughson |
Posted: Tue Mar 21, 2017 3:08 pm Post subject: Re: Reg q tool for mqversion 9 |
|
|
![](images/avatars/810794940518bb946528b3.jpg) Padawan
Joined: 09 May 2013 Posts: 1914 Location: Bay of Plenty, New Zealand
|
harimhkr wrote: |
looks like the q tool(ma01) is not working for mq version 9 for loading and unloding the queue.
is there a similar command line tool we can use to load the queue from a file.
thanks
Hari |
Are you sure you didn't mean to use QLOAD? Q is not really designed for loading and unloading queues. That's why QLOAD was created.
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
tczielke |
Posted: Tue Mar 21, 2017 5:45 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 939 Location: Illinois, USA
|
I am sure there are other tools out there to use, but I use the MQFile2Msg Java program in the MH06 supportpac when I want to take a file and place its contents as one message on a queue. You can set the format, ccsid, and encoding on the message, as well. It should work with MQ v9, since it is Java and portable! ![](images/smiles/icon_biggrin.gif) _________________ Working with MQ since 2010. |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
hughson |
Posted: Tue Mar 21, 2017 5:49 pm Post subject: Re: Reg q tool for mqversion 9 |
|
|
![](images/avatars/810794940518bb946528b3.jpg) Padawan
Joined: 09 May 2013 Posts: 1914 Location: Bay of Plenty, New Zealand
|
harimhkr wrote: |
looks like the q tool(ma01) is not working for mq version 9 for loading and unloding the queue. |
There shouldn't be any reason for Q not to work with V9. Can you provide the command you used and the resultant error please? _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
harimhkr |
Posted: Wed Mar 22, 2017 7:03 am Post subject: Re: Reg q tool for mqversion 9 |
|
|
Novice
Joined: 08 Jan 2013 Posts: 22
|
hughson wrote: |
harimhkr wrote: |
looks like the q tool(ma01) is not working for mq version 9 for loading and unloding the queue. |
There shouldn't be any reason for Q not to work with V9. Can you provide the command you used and the resultant error please? |
thanks for looking in to it..
this is the command I am using
q -m QMNAME -o QUEUENAME -F TEST.xml
MQSeries Q Program by Paul Clarke [ V4.5 Build:Sep 15 2006 ]
Connecting ...failed.
MQCONN on object 'QMNAME' returned 2012 Environment error..
And also I have never used qload and if its a good option can you please let me know how I can set-up and the syntax to use it.
and just as an FYI.. the client connections are not allowed in the environment I work in so rhfutil and mq explorer cannot be used. |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
mqjeff |
Posted: Wed Mar 22, 2017 7:14 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
have you run setmqenv ? _________________ chmod -R ugo-wx / |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
hughson |
Posted: Wed Mar 22, 2017 4:29 pm Post subject: Re: Reg q tool for mqversion 9 |
|
|
![](images/avatars/810794940518bb946528b3.jpg) Padawan
Joined: 09 May 2013 Posts: 1914 Location: Bay of Plenty, New Zealand
|
harimhkr wrote: |
this is the command I am using
q -m QMNAME -o QUEUENAME -F TEST.xml
MQSeries Q Program by Paul Clarke [ V4.5 Build:Sep 15 2006 ]
Connecting ...failed.
MQCONN on object 'QMNAME' returned 2012 Environment error.. |
Q is a 32bit application. Do you have the 32bit libraries in your path?
harimhkr wrote: |
And also I have never used qload and if its a good option can you please let me know how I can set-up and the syntax to use it. |
Google QLOAD to see where to download it. I think one of the examples in the usage text shows exactly the syntax you require.
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
harimhkr |
Posted: Thu Mar 23, 2017 4:10 am Post subject: Re: Reg q tool for mqversion 9 |
|
|
Novice
Joined: 08 Jan 2013 Posts: 22
|
hughson wrote: |
harimhkr wrote: |
this is the command I am using
q -m QMNAME -o QUEUENAME -F TEST.xml
MQSeries Q Program by Paul Clarke [ V4.5 Build:Sep 15 2006 ]
Connecting ...failed.
MQCONN on object 'QMNAME' returned 2012 Environment error.. |
Q is a 32bit application. Do you have the 32bit libraries in your path?
harimhkr wrote: |
And also I have never used qload and if its a good option can you please let me know how I can set-up and the syntax to use it. |
Google QLOAD to see where to download it. I think one of the examples in the usage text shows exactly the syntax you require.
Cheers
Morag |
I have the qload on my windows box, I am unable to upload the .xml it says unsupported format. NOTE: samp.xml is a file with a basic xml
qload.exe -mtest -otest -f samp.xml
QLOAD Program by Paul Clarke [ V1.9 Build:Jun 19 2012 ]
File 'samp.xml' does not appear to be a QLOAD file |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
harimhkr |
Posted: Thu Mar 23, 2017 4:12 am Post subject: |
|
|
Novice
Joined: 08 Jan 2013 Posts: 22
|
mqjeff wrote: |
have you run setmqenv ? |
yes we did run the setemv, but we did that again but same results
1. cd /opt/mqm/bin
2. . ./setmqenv -s
3. setmqm -m QMGR -n Installation1
4. logged out and logged back into session
5. stop and restarted the QMGR, |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
harimhkr |
Posted: Thu Mar 23, 2017 7:28 am Post subject: |
|
|
Novice
Joined: 08 Jan 2013 Posts: 22
|
the following is the error message we see
A IBM MQ shared library '/opt/mqm/lib/libmqmcs.so' was detected in this
process before the first connection to a queue manager was made.
Linking applications to this shared library is not supported.
The application will fail with reason code MQRC_ENVIRONMENT_ERROR until
the application has been re-linked without libmqmcs and libmqmzse.
ACTION:
Re-link your application, omitting the -lmqmcs and -lmqmzse options
from the command line.
This message can be suppressed by setting the AMQ_NO_MQMCS_MSG
environment variable to any value. |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
PaulClarke |
Posted: Thu Mar 23, 2017 9:27 am Post subject: |
|
|
![](images/avatars/46729506851b1e76395b14.jpg) Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
I have just noticed how very old your version of Q is. Have you tried downloading the latest version and trying that ?
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
harimhkr |
Posted: Thu Mar 23, 2017 9:56 am Post subject: |
|
|
Novice
Joined: 08 Jan 2013 Posts: 22
|
PaulClarke wrote: |
I have just noticed how very old your version of Q is. Have you tried downloading the latest version and trying that ?
Cheers,
Paul. |
thanks Paul. the v6.0 has fixed the issue |
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
|