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 » Packed Decimal - NULL Value

Post new topic  Reply to topic
 Packed Decimal - NULL Value « View previous topic :: View next topic » 
Author Message
rajeevreddy
PostPosted: Mon Dec 22, 2008 2:39 pm    Post subject: Packed Decimal - NULL Value Reply with quote

Apprentice

Joined: 07 Sep 2004
Posts: 39

How to handle a NULL value with Packed Decimal (COBOL Copy book).
I get below error when i try to parse a record when NULL occurs for a PD,
10 BNK1-MEET-YR PIC 999 COMP-3.
ConversionException BIP5505E: A data conversion failed because the data was invalid.
Type of data being read: 'packed decimal, no sign found '
Data: '0x0000'



Thanks for your help
Back to top
View user's profile Send private message
harish_td
PostPosted: Mon Dec 22, 2008 6:31 pm    Post subject: Reply with quote

Master

Joined: 13 Feb 2006
Posts: 236

Hi Rajeev,

If you are seeing a X'00' data then it is a NULL. Null values cannot be passed to PIC S9(X) COMP(3) fields or the Broker will not be able to parse it as a packed decimal field. They must be explicitly set to zeroes [MOVED ZEROES] and not LOW/MIN values [As they are known in Mainframe lingo].
The mainframe application will by default retro fit a sign and then send it across to your application.
Thus you should be receiving a X'C00' for the packed fields in question.

Hope that Helps,
Back to top
View user's profile Send private message Yahoo Messenger
kimbert
PostPosted: Thu Jan 01, 2009 4:39 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

rajeevreddy: Please don't double post. This thread looks almost identical to http://www.mqseries.net/phpBB2/viewtopic.php?t=46970
harish_td: Message broker is smarter than you think. Take a look at the other thread.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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