|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Padding Character |
« View previous topic :: View next topic » |
Author |
Message
|
sagwa99 |
Posted: Fri Jun 14, 2002 8:35 pm Post subject: Padding Character |
|
|
Novice
Joined: 14 Jun 2002 Posts: 15
|
Could someone let me know the padding character for a carriage return.
Thanks |
|
Back to top |
|
 |
CodeCraft |
Posted: Sun Jun 16, 2002 1:55 pm Post subject: |
|
|
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 |
|
 |
sagwa99 |
Posted: Sun Jun 16, 2002 7:14 pm Post subject: |
|
|
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 |
|
 |
CodeCraft |
Posted: Mon Jun 17, 2002 2:03 am Post subject: |
|
|
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 |
|
 |
sagwa99 |
Posted: Mon Jun 24, 2002 6:52 pm Post subject: |
|
|
Novice
Joined: 14 Jun 2002 Posts: 15
|
Thanks. It worked  |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|