Author |
Message
|
scravr |
Posted: Mon Apr 04, 2011 6:49 am Post subject: windows command line |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Mon Apr 04, 2011 6:53 am Post subject: |
|
|
 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 |
|
 |
scravr |
Posted: Mon Apr 04, 2011 7:00 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Apr 04, 2011 7:15 am Post subject: |
|
|
 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 |
|
 |
scravr |
Posted: Mon Apr 04, 2011 7:29 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Mon Apr 04, 2011 7:48 am Post subject: |
|
|
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 |
|
 |
|