RTCz - How to delete files when the they are promoted from dev to test stage using promotion definition.?
One answer
Here is an approach...
Create a DeleteRexx/clist that deletes a member if it exists in a PDS. Inputs(memberName, pds(e) location, etc)
Create a WrapperRexx/clist that parses the promotionInfo.xml file and identifies each member/program that needs to be DELETED.
Call the DeleteRexx 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 the path to the 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.