Posted: Thu Jun 10, 2004 6:20 am Post subject: MQSI ESQL QUESTION
Apprentice
Joined: 16 May 2002 Posts: 29 Location: chennai
HI GUYS
I HAVE AN INPUT XML MESSAGE LIKE
<A>
<B>NAME</b>
<C>ADDRESS</C>
</A>
I NEED TO CREATE AN OUTPUT MESSAGE MESSAGE BASED ON THE INPUT XML MESSAGE
FIRST I NEED TO CHECK THE INCOMMIMNG FIELDS B AND C
IF THEY ARE NOT PRESENT I NEED TO RAISE EXCEPTIONS
CAN U PLZ GIVE ME THE ESQL TO CHECK WHETHER THE FIELDS ARE PRESENT
WITH REGARDS
SRINIVAS
Posted: Thu Jun 10, 2004 9:19 am Post subject: MQSI ESQL QUESTION
Voyager
Joined: 07 May 2004 Posts: 97
IF ((TRIM("Root"."XML"."A"."B") IS NULL ) OR (TRIM("Root"."XML"."A"."B") = '' ) OR
(TRIM("Root"."XML"."A"."C") IS NULL ) OR (TRIM("Root"."XML"."A"."C") = '' ))
RETURN FALSE;
ELSE
RETURN TRUE;
END IF;
Use this code in Filter Node....connect true for mapping compute node and false to the exception generation compute node....That should be work for you.
Posted: Thu Jun 10, 2004 9:37 am Post subject: Learning ESQL
Master
Joined: 07 Jun 2002 Posts: 287 Location: NJ
k.srinivas,
Please search this forum for Redbooks, which contain the answer to most of your basic questions. The Redbooks will allow you to work with sample message flows/sets and develop your WMQI skills.
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