WebSphere Message Brokers
File: ak05580_
Writer: Bill Oppenheimer

Reference topic

This build: July 31, 2007 21:32:15

SAMEFIELD function

The SAMEFIELD field function tells you whether two field references point to the same target.

Syntax

SAMEFIELD returns a BOOLEAN value indicating whether two field references point to the same target. If they do, SAMEFIELD returns TRUE; otherwise SAMEFIELD returns FALSE.

For example:
DECLARE ref1 REFERENCE TO OutputRoot.XMLNS.Invoice.Purchases.Item[1];
MOVE ref1 NEXTSIBLING;
SET Result = SAMEFIELD(ref1,OutputRoot.XMLNS.Invoice.Purchases.Item[2]);
Result is TRUE.

See Creating dynamic field references for information about dynamic references.

Related concepts
ESQL overview
Related tasks
Developing ESQL
Related reference
Syntax diagrams: available types
ESQL field functions
MOVE statement
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:32:15

ak05580_ This topic's URL is: