Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

amqsgetc with Client(Windows 2000)/Server(OS/390) errors

Status
Not open for further replies.

sjgaboury

IS-IT--Management
Feb 24, 2003
2
US
I'm trying to get a message off an OS/390 Queue to save as a text file on Windows 2000. When I execute amqsgetc I get the following output:

Sample AMQSGET0 start
MQGET ended with reason code 2080
Sample AMQSGET0 end

What do I need to do to get a message off an OS/390 Queue to save it as a Windows text file?
 
Hi

The trouble with AMQSGETC is that it isn't meant to be a general message getting utility. The length of message that you can get is limited. (I think it is 80 bytes but I am not 100% sure of that). If the message is longer than this you get the error you have. (Truncated message returned).

Try using MQExplore to view the message. Or you could write just a simple little program to get the message yourselg. Remeber though that you have to use CONVERT on the GET option.
 
The problem I am having is that I don't have MQExplore. I am running an MQSeries Client. So, it sounds like the only way I will be able to get the message into a text file is to write something that will do this. That's not really the answer I was looking for.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top