RTCz How to invoke db2 bind scrip during promotion?
![](http://jazz.net/_images/myphoto/1ad60ecc5d38240f74be4211a1c9a1ca.jpg)
Hi ,
Can any one guide me on invoking DB2 bind during promotion.
I prepared DB2 bind REXX Script. And tried using Post build command option where in i gave the command as follows:
tso "EXEC 'XXXX.AAAA.REXX(RTCPDB)' '$(team.enterprise.promotion}'"
The result is says bad ${} modifier.
So if i omit ${}, then the script got invoked but parameters where not passed.
Can any one guide me here.
Thanks in advance.
:
Can any one guide me on invoking DB2 bind during promotion.
I prepared DB2 bind REXX Script. And tried using Post build command option where in i gave the command as follows:
tso "EXEC 'XXXX.AAAA.REXX(RTCPDB)' '$(team.enterprise.promotion}'"
The result is says bad ${} modifier.
So if i omit ${}, then the script got invoked but parameters where not passed.
Can any one guide me here.
Thanks in advance.
:
4 answers
![](http://jazz.net/_images/myphoto/1ad60ecc5d38240f74be4211a1c9a1ca.jpg)
Here is an approach...
Create a BindRexx/clist that performs a db2 bind. Inputs(memberName, pds(e) location, bindingEnvironment, etc)
Create a WrapperRexx/clist that parses the promotionInfo.xml file and identifies each member/program that needs to be BIND.
Call the BindRexx from the WrapperRexx and pass the identified information and any additional information needed.
Modify the generated promotion macro xml file to include a new ant target task that executes WrapperRexx, pass path to promotionInfo.xml file and any additional information needed.
Make sure the ant target task is executed/invoked.
On the promotion definition, Use the modified promotion macro xml file instead of generating each time.
![](http://jazz.net/_images/myphoto/1ad60ecc5d38240f74be4211a1c9a1ca.jpg)
Thanks, for response.
We have down with Bind Rexx and Wrapper Rexx that takes promotion.xml as input, internally that invokes bind Rexx.
But I am unable to follow on modify the generated promotion macro.xml to include a new ant target task that executes WrapperRexx.
Can you little elaborate this
Thanks, Viji
We have down with Bind Rexx and Wrapper Rexx that takes promotion.xml as input, internally that invokes bind Rexx.
But I am unable to follow on modify the generated promotion macro.xml to include a new ant target task that executes WrapperRexx.
Can you little elaborate this
Thanks, Viji