Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTCz - How to delete files when the they are promoted from dev to test stage using promotion definition.?

RTCz - How to delete files when the they are promoted from dev to test stage using promotion definition.?
When I promote from DEV to TEST libraries, after promotion i want to delete the files from DEV libraries.
How to achieve this.

Can any one help me.

Thanks in Advance, Viji

0 votes



One answer

Permanent link
 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.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,023

Question asked: May 05 '16, 11:46 a.m.

Question was seen: 2,298 times

Last updated: May 06 '16, 12:36 p.m.

Confirmation Cancel Confirm