|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Passing variable to CONNNAME? |
« View previous topic :: View next topic » |
Author |
Message
|
pichelma |
Posted: Wed Apr 24, 2002 5:59 am Post subject: |
|
|
Apprentice
Joined: 11 Mar 2002 Posts: 25
|
Hi all,
I was wondering how to do this properly(Win2000 batch file for setting up Sender channel):
rem Channel name CANNOT exceed 20 chars total!
echo DEF CHL(%county%_%env%_WISACWIS_%env%) CHLTYPE(SDR) TRPTYPE(TCP) CONNAME(DHFS_MQS_%env%(%port%)) XMITQ(%county%_%env%.XQ) NPMSPEED(FAST) REPLACE >> %defs%
The "CONNAME(DHFS_MQS_%env%(%port%))" part...gives me a syntax error because of the parenthesis inside a set of parenthesis already!
Can I get by this? I need to pass a param for the port number, it IS needed.
What am I missing?
Please advise, any help is appreciated!
Thanks,
Scott
|
|
Back to top |
|
 |
vedbhat |
Posted: Wed Apr 24, 2002 6:56 pm Post subject: |
|
|
 Disciple
Joined: 19 Mar 2002 Posts: 186 Location: Singapore
|
Hi,
Normally when you want to pass a parameter to the batch file, you pass it as -
BatchfileName <Par1> <Par2> .....<Par2>
And inorder to get the value of <Par1> within the batch file you have to use %1 for <Par2> use %2 and so on..
I hope this is what you are looking for and will be of help.
Regards
Ved
_________________ IBM Certified Solutions Expert - MQSeries Workflow
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
pichelma |
Posted: Wed Apr 24, 2002 7:57 pm Post subject: |
|
|
Apprentice
Joined: 11 Mar 2002 Posts: 25
|
Thanks Ved,
Figured out that Channel ConnNAME needs single quotes around second set of parenthesis...
Example:
CONNAME('198.164.42.19(1415)') |
|
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
|
|
|
|