Command to copy physical files before they get deleted

510 pts.
Tags:
AS400 physical file
CPYF
PF
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

Phil is corrrect.
That is the best way to guarentee that it will always happen

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    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
    49,950 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following