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 » mqsichangeproperties - comma AND whitespace

Post new topic  Reply to topic
 mqsichangeproperties - comma AND whitespace « View previous topic :: View next topic » 
Author Message
gs
PostPosted: Fri Feb 21, 2014 1:34 am    Post subject: mqsichangeproperties - comma AND whitespace Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

I need to set a UserDefined configurable service with property values containing both commas and whitespaces.
The manual states that if the value contains commas, I need to escape the double quotation marks. Also mentioned here: http://www.mqseries.net/phpBB/viewtopic.php?p=287791&sid=a484901183c2c483d1d65a37a12ccda4

That works just fine as long as the value doesn't contain one or more whitespaces.

This is equivalent to what I want to do:
Code:
mqsichangeproperties BK.ONE001Q -c UserDefined -o MyConfigurableService -n myProperty -v \"Value 1,Value 2\"


You may wonder why I need this in the first place and it's a Base DN for LDAP usage, e.g. "OU=That City,OU=Company,DC=company,DC=local"

EDIT: WMB version 8.0.0.3 / Windows Server 2008 R2


Last edited by gs on Fri Feb 21, 2014 1:51 am; edited 1 time in total
Back to top
View user's profile Send private message
Gralgrathor
PostPosted: Fri Feb 21, 2014 1:36 am    Post subject: Reply with quote

Master

Joined: 23 Jul 2009
Posts: 297

Escaping the white spaces as well doesn't work?
Back to top
View user's profile Send private message Send e-mail
gs
PostPosted: Fri Feb 21, 2014 1:37 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

Gralgrathor wrote:
Escaping the white spaces as well doesn't work?


Unfortunately no..
Back to top
View user's profile Send private message
stoney
PostPosted: Fri Feb 21, 2014 1:39 am    Post subject: Reply with quote

Centurion

Joined: 03 Apr 2013
Posts: 140

Wrap the escaped quotes in quotes:

Code:
$ mqsicreateconfigurableservice BK.ONE001Q -c UserDefined -o MyConfigurableService -n myProperty -v "\"Value 1,Value 2\""
BIP8071I: Successful command completion.

$ mqsireportproperties BK.ONE001Q -c UserDefined -o MyConfigurableService -r

UserDefined
  MyConfigurableService
    myProperty='Value 1,Value 2'

BIP8071I: Successful command completion.
Back to top
View user's profile Send private message
gs
PostPosted: Fri Feb 21, 2014 2:01 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

stoney wrote:
Wrap the escaped quotes in quotes:

Code:
$ mqsicreateconfigurableservice BK.ONE001Q -c UserDefined -o MyConfigurableService -n myProperty -v "\"Value 1,Value 2\""


Thanks! That did the trick
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 » mqsichangeproperties - comma AND whitespace
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.