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 » CREATE Statement

Post new topic  Reply to topic
 CREATE Statement « View previous topic :: View next topic » 
Author Message
gag_nm
PostPosted: Fri Feb 15, 2013 7:52 am    Post subject: CREATE Statement Reply with quote

Centurion

Joined: 16 Oct 2008
Posts: 102

Below is the input XML

<A>1234</A>
<B>321</B>
and i am trying to create new field using below code..
Code:


DECLARE cursor REFERENCE TO OutputRoot.MRM;
   
SET TAGVALUE = FIELDVALUE(InputRoot.XMLNSC.(XML.Attribute)A);
 Here value  TAGVALUE is 123

CREATE LASTCHILD  OF cursor Domain('MRM') NAME 'Account' VALUE TAGVALUE;

when i trying  to create field  using above code i am receiving null in Value field...

<Account></Account>


can some tell where i went wrong ??
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Feb 15, 2013 8:01 am    Post subject: Re: CREATE Statement Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

gag_nm wrote:
can some tell where i went wrong ??


1. Attend the required product training.

2. You have not specified the problem fully. What is the four-digit version number of the runtime? What is the effective level of the runtime?

3. You may prefer to use the XMLNSC parser rather than MRM. Although, your initial information doesn't say alot about why you chose MRM, which may be a valid (or not) choice based on your requirement.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Fri Feb 15, 2013 8:15 am    Post subject: Re: CREATE Statement Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

gag_nm wrote:
can some tell where i went wrong ??


Well in the XML you quoted A isn't an attribute, it's the tag value & even if it is an attribute in the real XML you'd specify it with XMLNSC.Attribute not XML.Attribute.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
adubya
PostPosted: Fri Feb 15, 2013 9:06 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

Redirect to /dev/null
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Fri Feb 15, 2013 9:10 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

So far, you have posted
- some broken XML ( no root tag )
- some broken ESQL ( XML.Attribute instead of XMLNSC.Attribute )
- more broken ESQL ( A is a tag, not an attribute )
...and no indication of what your task is.

Please start by telling us what you are trying to do. It's quite difficult to work that out so far...
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 » CREATE Statement
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.