|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
+000 not recognized as int |
« View previous topic :: View next topic » |
Author |
Message
|
gechu |
Posted: Tue Nov 23, 2010 7:53 am Post subject: +000 not recognized as int |
|
|
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 |
|
 |
kimbert |
Posted: Tue Nov 23, 2010 1:57 pm Post subject: |
|
|
 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 |
|
 |
gechu |
Posted: Wed Nov 24, 2010 3:31 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|