510 pts.
 Command to copy physical files before they get deleted
I have a requirement that when DLTF file command is execued if the file is PF then before file gets deleted CPYF coomand should be run.[Br style="padding: 0px; margin: 0px;" />[Br style="padding: 0px; margin: 0px;" />How can this be done?

Software/Hardware used:
AS400
ASKED: January 9, 2011  7:21 AM
UPDATED: January 11, 2011  12:38 AM

Answer Wiki:
Phil is corrrect. That is the best way to guarentee that it will always happen
Last Wiki Answer Submitted:  January 10, 2011  9:43 pm  by  CharlieBrowne   32,835 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,835 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You could create a command dltf and place it above the library of DLTF in the library list. You’re command will call a CL to issue the copy followed by the qualified DLTF command.

Phil

 44,150 pts.

 

There is no “best” way. Different versions/releases provide different capabilities and different sites have different requirements.

One way on current releases of the OS might be to use the QIBM_QCA_RTV_COMMAND exit point. And if this didn’t seem to be homework, a discussion of why that might be best could have been included.

Tom

 107,995 pts.