Hello again SueVolkmann. On your two questions:
Example for specifying D2T targets for two stages of a single Environment :
In your CSIQCLS0 library you will find a member named ENXDEPLY. You will need to make a copy of it and make some changes, and have the changed version run instead of the one currently in your CSIQCLS0 library.
Within ENXDEPLY is a called routine named Get_Subsystem_List that contains about 100 lines of REXX code to determine the D2T targets. If the environment you are describing is named ‘TEST’ and the stage ids are ‘1’ and ‘2’, your version of the Get_Subsystem_List routine could look something like this:
Get_Subsystem_List:
SBSLIST = ‘’
If Environment = 'TEST' & Stage = '1' then,
SBSLIST = '01'x||'TESTMFD '||'01'x||'TESTMFA '
If Environment = 'TEST' & Stage = '2' then,
SBSLIST = '01'x||'TESTMFD '||'01'x||'TESTMFA '||'01'x||'TESTMFB '
if SBSLIST = "" then do /* If we didn't find any valid subsystems */
ADDRESS ISPEXEC "SETMSG MSG(ENXM016E)" /* No Valid Targets */
ADDRESS ISPEXEC "TBEND" PickLstTable /* done with table */
Exit /* and return to user */
end
Sa= "End building Subsystem List" SBSLIST
Return
Automated Cleanup of D2T action:
The example processor code in your CSIQOPTN(ENXDCOMP) member is able to automatically cleanup the D2T actions performed for an element. It you copy (or Include) it into your Delete processor, then its steps determine which elements in the sending stage were targets for the element, and it causes them to be deleted.