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 » WebSphere Message Broker (ACE) Support » Padding Character

Post new topic  Reply to topic
 Padding Character « View previous topic :: View next topic » 
Author Message
sagwa99
PostPosted: Fri Jun 14, 2002 8:35 pm    Post subject: Padding Character Reply with quote

Novice

Joined: 14 Jun 2002
Posts: 15

Could someone let me know the padding character for a carriage return.

Thanks
Back to top
View user's profile Send private message
CodeCraft
PostPosted: Sun Jun 16, 2002 1:55 pm    Post subject: Reply with quote

Disciple

Joined: 05 Sep 2001
Posts: 195

If you are trying to specify this on an MRM CWF definition, try putting
X'0D' as the pad. Note, you cannot put X'0D0A' (CRLF), as far as I know with MRM you can only have one character specified.
Back to top
View user's profile Send private message
sagwa99
PostPosted: Sun Jun 16, 2002 7:14 pm    Post subject: Reply with quote

Novice

Joined: 14 Jun 2002
Posts: 15

I tried but it does not work. Could you provided further details? For example the incoming message is:
111
222222

Field_One (String length 3, CWF padding 0x0D)
Field_Two (String length 6)

Thank you.
Back to top
View user's profile Send private message
CodeCraft
PostPosted: Mon Jun 17, 2002 2:03 am    Post subject: Reply with quote

Disciple

Joined: 05 Sep 2001
Posts: 195

You are misusing the padding character. A padding character is used to fill out the unused portion of a field, so:

if fieldx is char(6) and has only '111' then there would be three pads,
probably spaces.

What you have is CRLF terminated fields, by the looks of things. Since each of these would be two bytes, you could define:

field1 char(3)
field2 char(2) -- for crlf
field3 char(6)
field4 char(2) -- for crlf

assuming field1 is always 3 characters and field3 is always six characters. If you are using 2.1 you could look at modelling this in TDS rather than CWF.
Back to top
View user's profile Send private message
sagwa99
PostPosted: Mon Jun 24, 2002 6:52 pm    Post subject: Reply with quote

Novice

Joined: 14 Jun 2002
Posts: 15

Thanks. It worked
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 » WebSphere Message Broker (ACE) Support » Padding Character
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.