|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to find a datatype. |
« View previous topic :: View next topic » |
Author |
Message
|
kiran26 |
Posted: Wed Sep 04, 2002 2:17 pm Post subject: How to find a datatype. |
|
|
Acolyte
Joined: 06 Feb 2002 Posts: 69
|
Hi all,
Is there any way to find out the data type of the value stored in the field reference?
For eg., I want to find whether the value is numeric or character or boolean data type.
Currently I am using CAST function. But looking for a better way to do.
Thanks
vishnu |
|
Back to top |
|
 |
kiran26 |
Posted: Wed Sep 04, 2002 3:24 pm Post subject: |
|
|
Acolyte
Joined: 06 Feb 2002 Posts: 69
|
I am currently using generic xml for the input message .I want to find out the data type of the value stored in the field references ie InputRoot.XML.Message.Field1
I request your suggestion
Thanks |
|
Back to top |
|
 |
surenat |
Posted: Thu Sep 05, 2002 8:33 am Post subject: |
|
|
Apprentice
Joined: 01 Jan 2002 Posts: 32
|
Hi ,
I had same situation, I have tried use CAST function, but if you use the CAST function, if it can not cast into desired data type, i think it will throw a runtime exception. Any how I could not find any ESQL function to find data type of field in xml.
Finally I could this by checking every character in the xml filed. |
|
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
|
|
|
|