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 » Padding field data.

Post new topic  Reply to topic
 Padding field data. « View previous topic :: View next topic » 
Author Message
gorjy
PostPosted: Fri Jul 15, 2005 6:12 am    Post subject: Padding field data. Reply with quote

Novice

Joined: 15 Jul 2005
Posts: 18
Location: Bulgaria, Sofia

Hello from Bulgaria.

I am working with a WB-IMB 5.0.4 and Websphere MQ v5.3 under Windows 2003, but I am a real newbie with Brokers.
My task is to convert an incoming message.
My problem is that I receive a message in which, there is a field, which is defined to be 12 symbols long, but in reality can be shorter.

My question: How can I change field's length to the proper one?
To be more precise: How can I add 'spaces' or 'null' symbols in front of the meaning symbols in the field /pad the field/, so whatever message I receive, to be in proper format (length) for the next element in the message flow?

Thanks ahead.
Back to top
View user's profile Send private message
malammik
PostPosted: Fri Jul 15, 2005 7:29 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

You could try using SPACE() and REPLACE() esql functions. They are well documented in the manuals.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Padding field data.
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.