ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » amqsbcg error

Post new topic  Reply to topic Goto page 1, 2  Next
 amqsbcg error « View previous topic :: View next topic » 
Author Message
anshumanmishra07
PostPosted: Wed Aug 17, 2016 11:49 pm    Post subject: amqsbcg error Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Wed Aug 17, 2016 11:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Thu Aug 18, 2016 12:30 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Aug 18, 2016 3:42 am    Post subject: Re: amqsbcg error Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
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
View user's profile Send private message
anshumanmishra07
PostPosted: Thu Aug 18, 2016 4:03 am    Post subject: Reply with quote

Newbie

Joined: 21 Jun 2016
Posts: 4

I am using MQ version 7.5.0.1
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Aug 18, 2016 4:07 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Aug 18, 2016 4:47 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
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
View user's profile Send private message
mqjeff
PostPosted: Thu Aug 18, 2016 4:53 am    Post subject: Reply with quote

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
View user's profile Send private message
JosephGramig
PostPosted: Thu Aug 18, 2016 10:01 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1231
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
View user's profile Send private message AIM Address
bruce2359
PostPosted: Thu Aug 18, 2016 11:05 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
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
View user's profile Send private message
hughson
PostPosted: Thu Aug 18, 2016 3:19 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
gbaddeley
PostPosted: Thu Aug 18, 2016 5:02 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
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
View user's profile Send private message
hughson
PostPosted: Thu Aug 18, 2016 5:43 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Fri Aug 19, 2016 3:47 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Fri Aug 19, 2016 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » amqsbcg error
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.