WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Querying null values in a message in the DFDL domain

You can use an ESQL statement to compare an element to NULL.

If you want to compare an element to NULL, code the statement:

IF InputRoot.DFDL.MyMessage.Elem2.Child1 IS NULL THEN
   DO:
    -- more ESQL --
END IF;

If nulls are permitted for this element, this statement tests whether the element exists in the input message, or whether it exists and contains one of the 'nil' values defined for the element in the DFDL schema. The returned result of this test is determined as follows:

  • If the element Child1 is not in the bit stream, this test returns TRUE.
  • If the element Child1 is in the bit stream and contains one of the 'nil' values, this test returns TRUE.
  • If the element Child1 is in the bit stream and does not contain one of the 'nil' values, this test returns FALSE.

If you want to determine if the field is missing, rather than present but with null value, you can use the ESQL CARDINALITY function.

Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:47:59


Task topicTask topic | Version 8.0.0.7 | bc40795_