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 » windows command line

Post new topic  Reply to topic
 windows command line « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Mon Apr 04, 2011 6:49 am    Post subject: windows command line Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

I have JAVA code generating command lines like:

mqsicreatemsgdefs -p OMB_MS_CPY_M0110_PRJ_V136_FBOC_ADJ -d C:\tmp\tst
-opt C:\My\workspace-20110302\BROKER_RUNTIME_SOR_CSD_MF_PRJ_V100\XML\mqsicreatemsgdefs.xml
-log C:\My\CreateMS\MsbTrace\M0110.log
-base OMB_GENERIC_MS_FIX_LENGTH_PRJ_ADJ\OMB_GENERIC_MS_FIX_LENGTH_PRJ_ADJ
-data C:\Documents and Settings\my\IBM\workspace-20110331-MS
-v -rmp -rmd -msg

This dose not run; always getting errors. It looks like the spaces in the directory name: Documents and Settings
causes error.
Same case in mqsicreatebar.

Any ideas how to gener the commands in JAVA?
Also how can I use workspace in Documents and Settings and run command lines directly on windows cmd?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
lancelotlinc
PostPosted: Mon Apr 04, 2011 6:53 am    Post subject: Reply with quote

Jedi Knight

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

Putting quotes around the whole command line or, alternatively, those names with spaces usually does the trick.
_________________
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
scravr
PostPosted: Mon Apr 04, 2011 7:00 am    Post subject: Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

nice try, but no good
Back to top
View user's profile Send private message Send e-mail MSN Messenger
lancelotlinc
PostPosted: Mon Apr 04, 2011 7:15 am    Post subject: Reply with quote

Jedi Knight

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

Try again:

mqsicreatemsgdefs -p OMB_MS_CPY_M0110_PRJ_V136_FBOC_ADJ -d C:\tmp\tst
-opt C:\My\workspace-20110302\BROKER_RUNTIME_SOR_CSD_MF_PRJ_V100\XML\mqsicreatemsgdefs.xml
-log C:\My\CreateMS\MsbTrace\M0110.log
-base OMB_GENERIC_MS_FIX_LENGTH_PRJ_ADJ\OMB_GENERIC_MS_FIX_LENGTH_PRJ_ADJ
-data "C:\Documents and Settings\my\IBM\workspace-20110331-MS"
-v -rmp -rmd -msg


It works.

Another alternative is to create your workspace in a directory structure that does not have spaces.
_________________
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
scravr
PostPosted: Mon Apr 04, 2011 7:29 am    Post subject: Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

always same error:

BIP0220E Incorrect arguments supplied to mqsicreatemsgdefs.
Invalid base message set name "OMB_GENERIC_MS_FIX_LENGTH_PRJ_ADJ\OMB_GENERIC_MS_FIX_LENGTH_PRJ_ADJ".
BIP0226E Command did not complete.
See earlier error messages for details of the problem.


Error because spaces in Documents and Settings
Other workspace (without spaces) works fine.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
mqjeff
PostPosted: Mon Apr 04, 2011 7:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

If you really believe that it is an issue with the spaces in the directory, rather than something else, then convert the path to a windows short path (C:\Docum~1\.... or whatever is correct for your system) and repeat the exercise.

Also make sure you are using the most recent FP and iFix of the level of Toolkit you are using, on the machine running mqsicreatemsgdefs.
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 » windows command line
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.