Posted: Mon Oct 27, 2003 5:16 am Post subject: Spaces become NULL
Newbie
Joined: 15 Oct 2003 Posts: 4 Location: Paris-France
I am having some probems with a string field that contains spaces. My input message have 5 spaces at the begining.
When I try to select this field into a not null field in a database I get errors complaining that the field is null, when in reality it is spaces (SQLcode -804 rc 09). How do I prevent this?
The CWF element definition is :
Physical Type: Fixed Length String
Lenght Count : 5
Length Units : Bytes
Byte Alignment : 1 Byte
String Justification: Left Justify
Padding Character: SPACE
Skip Count: 0
Encoding Null: NULLLogicalValue
I tried to do the select directly and with a passthru. The result is the same.
Thanks
Z/OS 1.2 WMQI 2.1 CSD05 DB2 V7
Joined: 24 Feb 2002 Posts: 160 Location: The Netherlands
The problem is in the Padding Character, all padding spaces will be removed from your input field, for an input field with only spaces this will result in a null value. _________________ Jan Fluitsma
IBM Certified Solution Designer WebSphere MQ V6
IBM Certified Solution Developer WebSphere Message Broker V6
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