|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
mqsichangeproperties - comma AND whitespace |
« View previous topic :: View next topic » |
Author |
Message
|
gs |
Posted: Fri Feb 21, 2014 1:34 am Post subject: mqsichangeproperties - comma AND whitespace |
|
|
 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 |
|
 |
Gralgrathor |
Posted: Fri Feb 21, 2014 1:36 am Post subject: |
|
|
Master
Joined: 23 Jul 2009 Posts: 297
|
Escaping the white spaces as well doesn't work? |
|
Back to top |
|
 |
gs |
Posted: Fri Feb 21, 2014 1:37 am Post subject: |
|
|
 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 |
|
 |
stoney |
Posted: Fri Feb 21, 2014 1:39 am Post subject: |
|
|
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 |
|
 |
gs |
Posted: Fri Feb 21, 2014 2:01 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|