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 » VALUE ONLY SET if field created with VALUE

Post new topic  Reply to topic
 VALUE ONLY SET if field created with VALUE « View previous topic :: View next topic » 
Author Message
crossland
PostPosted: Tue Mar 03, 2009 3:28 am    Post subject: VALUE ONLY SET if field created with VALUE Reply with quote

Master

Joined: 26 Jun 2001
Posts: 248

Using the debugger, the following Id field was not being set:

MOVE oXref TO oref.ns1:Header.ns2:Field;
CREATE NEXTSIBLING OF oXref NAMESPACE ns1 NAME 'Id';

SET oref.ns1:Header.ns1:Id = iref.ns1:Id;

The weird thing is if I add VALUE '' to the CREATE command above, it works.

Anyone know why this would fix it?

Thanks!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 03, 2009 3:39 am    Post subject: Re: VALUE ONLY SET if field created with VALUE Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

crossland wrote:
Using the debugger, the following Id field was not being set:

MOVE oXref TO oref.ns1:Header.ns2:Field;
CREATE NEXTSIBLING OF oXref NAMESPACE ns1 NAME 'Id';

SET oref.ns1:Header.ns1:Id = iref.ns1:Id;

The weird thing is if I add VALUE '' to the CREATE command above, it works.

Anyone know why this would fix it?

Thanks!

Code:
SET oref.ns1:Header.ns1:Id = iref.ns1:Id;
Will set the oref.ns1:Header.ns1:Id to Null if the source iref.ns1:Id is null.
This will effectively remove the ns1.Id tag from your output.
Code:
SET oref.ns1:Header.ns1:Id VALUE = iref.ns1:Id;

This will keep the tag in case the source is null and assign the null value to the tag. Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Mar 03, 2009 3:43 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

As an add on to what F.J. said, examine the result of "set oref.ns1:Header.ns1:Id = 'foo';".
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 » VALUE ONLY SET if field created with VALUE
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.