Author |
Message
|
anshumanmishra07 |
Posted: Wed Aug 17, 2016 11:49 pm Post subject: amqsbcg error |
|
|
Newbie
Joined: 21 Jun 2016 Posts: 4
|
While trying to read message from a queue i am getting the error
"amqsbcg in not recognised as an internal or external command"
C:\Windows\system32>amqsbcg INPUT IB9QMGR
'amqsbcg' is not recognized as an internal or external command,
operable program or batch file.
Why am I getting this error? |
|
Back to top |
|
 |
exerk |
Posted: Wed Aug 17, 2016 11:52 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
And which version of MQ are you using? Do you have a version that supports multiple installations and none are set as Primary? Have you verified the executable is in the path it should be, or is actually installed? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Aug 18, 2016 12:30 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Why are you set to use the
Code: |
C:\Windows\System32 |
Directory? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Aug 18, 2016 3:42 am Post subject: Re: amqsbcg error |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
anshumanmishra07 wrote: |
C:\Windows\system32>amqsbcg INPUT IB9QMGR
'amqsbcg' is not recognized as an internal or external command,
operable program or batch file.
Why am I getting this error? |
This error is from the operating system telling you that it can't find the IBM-supplied amqsbcg sample program is the executable library search path.
Use Windows search facilities to discover which library contains amqsbcg, and change directory to that directory, then try again.
What version of IMQ are you running? The usual Windows installation process updates the search path to include the supplied samples. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
anshumanmishra07 |
Posted: Thu Aug 18, 2016 4:03 am Post subject: |
|
|
Newbie
Joined: 21 Jun 2016 Posts: 4
|
I am using MQ version 7.5.0.1 |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 18, 2016 4:07 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I hadn't thought that the MQ install put the samples on the path...
So one would have to add ... tools/c/samples/bin to the path.
and run anything from anywhere other than c:/windows/sys32.
Especially on a 64bit machine... _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Aug 18, 2016 4:47 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
... If memory serves. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 18, 2016 4:53 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
... If memory serves. |
Well, yeah. Mine too. Doesn't 7.5 have the setmqenv? That would resolve the question. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
JosephGramig |
Posted: Thu Aug 18, 2016 10:01 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
It is on the path for V8.0 and I didn't add the samples to my path (that I remember). I would expect this to work for 7.5 and so the OP should tell us the output of:
dspmqinst
Correction, I do see the samples in my path... I guess I just do that by default. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Aug 18, 2016 11:05 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
The op should also echo %path% _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
hughson |
Posted: Thu Aug 18, 2016 3:19 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
The samples bin directory is not in the path. A couple of the samples (amqsput and amqsget) are in the main bin, but amqsbcg is not.
Add the samples bin directory to your path if you want it or fully qualify the program you want to run.
This changed at the same time as multi-version install came along. Previously samples were added to the path. I personally detested the change, but was overruled
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Aug 18, 2016 5:02 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
hughson wrote: |
The samples bin directory is not in the path. A couple of the samples (amqsput and amqsget) are in the main bin, but amqsbcg is not.
Add the samples bin directory to your path if you want it or fully qualify the program you want to run.
This changed at the same time as multi-version install came along. Previously samples were added to the path. I personally detested the change, but was overruled
Cheers
Morag |
Agree. amqsput, amqsget and amqsbcg are the 3 most common samples that I use and they should be lumped together.
On UNIX, the samp/bin programs have never been in the PATH or linked from /usr/bin. This is an argument for not doing this on other platforms. It reinforces that sample programs are being run, not programs that are part of the core product. _________________ Glenn |
|
Back to top |
|
 |
hughson |
Posted: Thu Aug 18, 2016 5:43 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
amqsbcg is also used a lot by IBM Service to get hex dumps of messages, say of the SYSTEM.CHANNEL.SYNCQ. It would make a lot of sense to have amqsbcg in the same bin as amqsput and amqsget.
Perhaps someone should raise that as an RFE?
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Aug 19, 2016 3:47 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
hughson wrote: |
amqsbcg is also used a lot by IBM Service to get hex dumps of messages, say of the SYSTEM.CHANNEL.SYNCQ. It would make a lot of sense to have amqsbcg in the same bin as amqsput and amqsget.
Perhaps someone should raise that as an RFE? |
Forgive me for telling a lion how to roar...
but wouldn't moving amqsbcg(c) to that folder mean that it would no longer be a 'sample'? And that would adjust, perhaps, the requirements on inclusion of the code with the product... ? And the requirements on testing it and etc. etc. etc...
Although with the new continuous deploy model of MQ V9, perhaps that gets easier. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Aug 19, 2016 6:37 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
hughson wrote: |
amqsbcg is also used a lot by IBM Service to get hex dumps of messages, say of the SYSTEM.CHANNEL.SYNCQ. It would make a lot of sense to have amqsbcg in the same bin as amqsput and amqsget.
Perhaps someone should raise that as an RFE? |
Forgive me for telling a lion how to roar...
but wouldn't moving amqsbcg(c) to that folder mean that it would no longer be a 'sample'? And that would adjust, perhaps, the requirements on inclusion of the code with the product... ? And the requirements on testing it and etc. etc. etc...
Although with the new continuous deploy model of MQ V9, perhaps that gets easier. |
It is still a sample IMHO because the source is provided. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|