Posted: Tue Jan 20, 2009 12:11 pm Post subject: Extended decimal gettinf reduced to Null
Newbie
Joined: 20 Jan 2009 Posts: 7
Hi All
I have a fixed format message coming from Mainfarme with an Encoding and CCSID of 785 and 500. At the end of message a group of 16 bytes is repeated. Please find attached a snap shot of the same.
The 16 Byte of Data which is repeated is accomodated under two fields in Message set first of which is a Extended Decimal with a 2 Byte precision and the second is a Integer of 5 Bytes
The value logically should be as follows.
First Field :- 0000010000{
Second Field :- 00001
In the ESQL code the Data gets converted to null values and hence no XML tags are formed.
The Trace says :-
Failed to navigate to path element because it does not exist. This resolved to 'CAST(NULL AS DECIMAL(11, 2) )'. The result was 'NULL'.
As the elements get a null value XML tags are not formed. Please suggest.
Failed to navigate to path element because it does not exist
I think you are misinterpreting the trace output. If you insert a Trace node, you will probably find that the element is missing ( 'does not exist' ). There may be previous occurrences with non-null values, but the basic problem here is that your ESQL is attempting to reference a non-existent field in the tree.
Quote:
This resolved to 'CAST(NULL AS DECIMAL(11, 2) )
It's none of my business really, but I am surprised that you need to use CAST when the tree was created by the MRM parser. Especially since you are dealing with COBOL physical types. Why do you need it?
1) I am not able to provide you the trace because of restrictions. I am not misinterpreting the trace. The esql code is considering the value as null though it is coming as 0000010000{. Will redeploying the flows help out ?
2) Some developer coded it long time back thinking of what i don't know but yeah it really doesn't need a cast if physical type is an extended decimal.
Thanks Kimbert !!! I appreciate your help on this one !!!
That message means that the element does not exist in the message tree. The CAST statement is using NULL because NULL is the value of a non-existent ESQL path. Re-read my previous comments for suggestions on next steps.
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