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 » What are the integer values returned of FIELDTYPE function?

Post new topic  Reply to topic
 What are the integer values returned of FIELDTYPE function? « View previous topic :: View next topic » 
Author Message
EBM014
PostPosted: Wed Nov 08, 2017 3:14 am    Post subject: What are the integer values returned of FIELDTYPE function? Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 08, 2017 6:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
rekarm01
PostPosted: Wed Nov 08, 2017 5:39 pm    Post subject: Re: What are the integer values returned of FIELDTYPE functi Reply with quote

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
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 » What are the integer values returned of FIELDTYPE function?
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.