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 » Spaces become NULL

Post new topic  Reply to topic
 Spaces become NULL « View previous topic :: View next topic » 
Author Message
moreau
PostPosted: Mon Oct 27, 2003 5:16 am    Post subject: Spaces become NULL Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
jfluitsm
PostPosted: Sat Nov 01, 2003 4:42 am    Post subject: Reply with quote

Disciple

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Spaces become NULL
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.