|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
What are the integer values returned of FIELDTYPE function? |
« View previous topic :: View next topic » |
Author |
Message
|
EBM014 |
Posted: Wed Nov 08, 2017 3:14 am Post subject: What are the integer values returned of FIELDTYPE function? |
|
|
Newbie
Joined: 05 Nov 2017 Posts: 2
|
Hi,
As per description of FIELDTYPE function: FIELDTYPE returns an integer representing the type of the field identified by
source_field_reference; this is the type of the field, not the data type of the field that the parameter identifies.
what are the integer values return of this function?
If I have this code, IF FIELDTYPE(root) = '50331648',
what does '50331648' mean? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Nov 08, 2017 6:29 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You might want to look at some of the following constants: XMLNSC.Element,
XMLNSC.Folder etc...
If you look at a debug level trace output of the message tree you should see the numeric value for each branch / leaf of the message tree...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
rekarm01 |
Posted: Wed Nov 08, 2017 5:39 pm Post subject: Re: What are the integer values returned of FIELDTYPE functi |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
EBM014 wrote: |
If I have this code, IF FIELDTYPE(root) = '50331648', what does '50331648' mean? |
The generic field type constant values are documented in the Java API (among other places):
Code: |
TYPE_UNKNOWN 0 (0x00000000)
TYPE_NAME 16777216 (0x01000000)
TYPE_VALUE 33554432 (0x02000000)
TYPE_NAME_VALUE 50331648 (0x03000000) |
If a field is associated with a broker parser, then the parser may define its own field type constants.
A Trace node will usually display the field type name and value, before the field name. For example:
Code: |
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x1235789b0]
(0x03000000:NameValue):MessageSet = '' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
...
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0x123926310]
(0x01000000:Folder):Output = (
(0x01000000:Folder):LineItem = (
(0x03000000:PCDataField):LineNum = '1' (CHARACTER)
...
|
|
|
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
|
|
|
|