Shares 19

amqsput is a sample program, which can be used to put a message on IBM WebSphere MQ Queues.

Sample program (amqsput) gets installed on Windows when you install either Client or Server. However, on Linux – you must install sample RPM. If you haven’t then you will not have amqsput file available under bin folder.

Sample program RPM is included in MQ 8 installer, all you got to do is install this RPM to start using amqsput program.

If you have installed MQ 8 as explained here, you will have MQSeriesSamples-8.0.0-2.x86_64.rpm under server folder.

Install MQ Sample Program

  • Go to location where you have MQSeriesSamples-8.0.0-2.x86_64.rpm
  • Use rpm command to install this package
rpm –ivh MQSeriesSamples-8.0.0-2.x86_64.rpm
[[email protected] server]# rpm -ivh MQSeriesSamples-8.0.0-2.x86_64.rpm
Preparing...                         ################################# [100%]
Updating / installing...
   1:MQSeriesSamples-8.0.0-2         ################################# [100%]
[[email protected] server]#

Now, amqsput is installed and available under /opt/mqm/samp/bin folder.

-bash-4.2$ ./amqsput

Sample AMQSPUT0 start

Required parameter missing – queue name

-bash-4.2$

Was this helpful to you? Let me know how it goes.

Shares 19

Reader Interactions

Comments

Your email address will not be published. Required fields are marked *