|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Remove blank spaces created for missing values in Fixed Leng |
« View previous topic :: View next topic » |
Author |
Message
|
m.arunprasad1 |
Posted: Mon Mar 04, 2013 1:12 am Post subject: Remove blank spaces created for missing values in Fixed Leng |
|
|
Novice
Joined: 11 Feb 2013 Posts: 19
|
I have defined a FIXED Length Message Format whose lenght will be 403 characters and my issue is that whenever there are no values for some of the fields, I am getting a blank spaces which I am not supposed to get.
When all values are available it looks like this:
110900000001 00DE172046177000 NL 11 115 49119900NL 0000000000000000000008 000000002200000000022009092 ABC Germany defined1 defined2 street 123456Berlin Article Poster 1212345678911123
But when additional fields(Fields in BOLD )are not required, when those fields are not populating, I am setting its values as NULL in ESQL, but still i am getting the blank spaces which is like this :
110900000001 00DE172046177000 GB 11 115 49019900GB 0000000243200000000000 000000883930000008839309092
Please help me how to resolve this.  |
|
Back to top |
|
 |
kimbert |
Posted: Mon Mar 04, 2013 1:36 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Please state which version of WMB you are using, and which domain you are using to write this message format. |
|
Back to top |
|
 |
m.arunprasad1 |
Posted: Mon Mar 04, 2013 1:41 am Post subject: |
|
|
Novice
Joined: 11 Feb 2013 Posts: 19
|
Hi Kimbert,
I am using Message Broker Version 6.0.2 and using MRM domain to write this message format. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Mar 04, 2013 2:21 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I am using Message Broker Version 6.0.2 |
...which is out of support, unless you have negotiated an extended service contract with IBM.
Quote: |
and using MRM domain to write this message format |
Thanks - it could have been DFDL if you were a v8 user.
Quote: |
When all values are available it looks like this:
110900000001 00DE172046177000 NL 11 115 49119900NL 0000000000000000000008 000000002200000000022009092 ABC Germany defined1 defined2 street 123456Berlin Article Poster 1212345678911123
But when additional fields(Fields in BOLD )are not required, when those fields are not populating, I am setting its values as NULL in ESQL, but still i am getting the blank spaces which is like this : 110900000001 00DE172046177000 GB 11 115 49019900GB 0000000243200000000000 000000883930000008839309092
|
Blank spaces do not show up very well. I'll assume that there are lots of blank spaces there
btw, it helps if you format your posts using code tags. Especially when you are trying to show us what your fixed-length data looks like.
The solution is
- set minOccurs=0 on the trailing optional fields
- in your ESQL, delete the trailing optional fields from the message tree. If you set them to NULL then the MRM will output a NULL representation for them - MRM knows how to write NULL values ( as you have found out ).
Give that a try, and let us know how you get on.
If you still have a problem, please post the output of a Trace node ( in code tags ). |
|
Back to top |
|
 |
m.arunprasad1 |
Posted: Mon Mar 04, 2013 2:34 am Post subject: |
|
|
Novice
Joined: 11 Feb 2013 Posts: 19
|
Hi Kimbert,
Now its working.. I am not seeing any blank spaces at the end in the Output Message.
Thanks a lot for your help on this.  |
|
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
|
|
|
|