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 IndexGeneral IBM MQ SupportUploading a file with multiple rec as separate msgs on queue

Post new topicReply to topic
Uploading a file with multiple rec as separate msgs on queue View previous topic :: View next topic
Author Message
boydl
PostPosted: Wed Feb 05, 2003 1:40 am Post subject: Uploading a file with multiple rec as separate msgs on queue Reply with quote

Novice

Joined: 05 Feb 2003
Posts: 16

I'm trying to upload a file that contains 100+ records as separate msgs each to a single queue. I have tried using amqsput < filename but the record gets truncated after 99 char. Each record in the file is abt 200 char.
Any help is appreciated

thanx
Back to top
View user's profile Send private message
fschofer
PostPosted: Wed Feb 05, 2003 3:18 am Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

amsput is only a small sample program and is limitied to 100 bytes

You may try to increase the buffer in the C sourccode
to the size you need and compile it.


Change this line in the file amqsput0.c
char buffer[100]; /* message buffer */

Frank
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Wed Feb 05, 2003 3:26 am Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5658
Location: UK

amqsput is really only a sample program, not a utility.

You could modify the provided source code to increase the max message size.
Back to top
View user's profile Send private message
ankur
PostPosted: Sun Apr 15, 2018 10:32 pm Post subject: Reply with quote

Newbie

Joined: 15 Apr 2018
Posts: 3

Is there any update on this topic. I am struggling with the same issue. I am trying to upload the file to mq queue using amqsput but it is sending each line as a separate message. How to send the complete message as one using amqsput or if there is any other utility for doing so?
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Apr 16, 2018 12:29 am Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 5961

IH03 SupportPac...

Please try not to re-open 15-year-old posts.
_________________
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
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportUploading a file with multiple rec as separate msgs on queue
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.