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 » ma01 - input record truncated

Post new topic  Reply to topic
 ma01 - input record truncated « View previous topic :: View next topic » 
Author Message
dyevin
PostPosted: Wed Apr 01, 2015 7:41 pm    Post subject: ma01 - input record truncated Reply with quote

Novice

Joined: 27 May 2003
Posts: 11
Location: Phoenix, Arizona

I am using ma01 on z/OS to create MQ messages from fixed-length records in an existing file. The input record size is fixed at 5078 bytes, but some records have a number of spaces at the end. Consequently, some MQ messages are created with a message length of 5078 bytes, and some are created with a message length somewhat less. I can't seem to find anything in the ma01 doc that indicates how to avoid this truncation. Is there a way for me to do this? Thanks in advance.

Don
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Thu Apr 02, 2015 12:34 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

MA01 knows nothing of record I/O. MA01 reads files using C stream I/O using something like fgets(). So, if you are going to get this to work I suspect you are looking for a setting in the C runtime on z/OS to cope with the various z/OS record formats. Generally speaking I think it works best when you are using VB rather than FB records. The C programming language itself doesn't understand file records.

If all you want to do is read a FB file and issue an MQPUT for each line it finds then this would be a trivial program to write. You could probably modify AMQSPUT0.C without much difficulty. This might be a better approach in the long run.

Cheers,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Mon Apr 06, 2015 5:12 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Or write a simple sed/perl/awk/python/something script to pad the ends of the lines in the file.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » ma01 - input record truncated
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.