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 » +000 not recognized as int

Post new topic  Reply to topic
 +000 not recognized as int « View previous topic :: View next topic » 
Author Message
gechu
PostPosted: Tue Nov 23, 2010 7:53 am    Post subject: +000 not recognized as int Reply with quote

Apprentice

Joined: 27 Feb 2008
Posts: 48

MRM parser, TDS format, the field is set to logical type INT, and physical to CHARACTER, with positive and negative sign set to "+" and "-".

I believe it can handle other fields, like +001, or +400202, but when there is a positive sign followed by one or many zeros, it fails by saying:

Code:

File:CHARACTER:F:\build\S610_P\src\cpi\bsutils\datacnv.cpp
Line:INTEGER:621
Function:CHARACTER:DataCnv::StrToInt64
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:5505
Text:CHARACTER:CPI Converter Input Data Invalid
Insert
      Type:INTEGER:5
      Text:CHARACTER:string
Insert
Type:INTEGER:5
Text:CHARACTER: +000000                                                   
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Nov 23, 2010 1:57 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I believe it can handle other fields, like +001, or +400202
It sounds like a defect, but I don't think anyone else has reported this problem, and TDS has been in use for a long time.

You could raise a PMR, but I suggest that you collect plenty of evidence first. I would start by listing exactly which numbers do/do not parse successfully.
Back to top
View user's profile Send private message
gechu
PostPosted: Wed Nov 24, 2010 3:31 am    Post subject: Reply with quote

Apprentice

Joined: 27 Feb 2008
Posts: 48

case solved! The broker could handle "+000", but due to my poor understanding of what the actual field lengths were, the parser failed.

The specification I used to create the message set consisted of fields descriptors of three different kinds:

A = alphanumerical
S = soned decimal
P = packed decimal

A = translates to the actual field length
S = field length + 1
P = field length + 1, if decimal add +1 (field + 2)

/Erik
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 » +000 not recognized as int
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.