Posted: Mon Jan 31, 2011 8:40 am Post subject: NullPadFill in message definition doens't work
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
Hi,
in the message definition, since all fields are manditory, I set Encoding Null to NullPadFill for fixed length strings, and NullliteralFill and space for packed decimal.
I anticipate that this will ensure the parser will automatically fill in fields not present in the incoming message with padding characters.
But it doesn't.
Is this what the parser is supposed to do? or I'm missing sth here.
thanks for sharing your insight.
_________________ pcelari
-----------------------------------------
- a master of always being a newbie
Is this what the parser is supposed to do? or I'm missing sth here.
You're missing something. The null properties describe what an element looks like when it has a null value - not when it is completely missing.
The null handling properties do not apply to your scenario. What you need is a default value - but the MRM parser does not apply default values when parsing. If you are writing fixed-length data then you should be able to set default values for the fields and get what you need.
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