CL – OVRDBF

1,215 pts.
Tags:
CL
OVRDBF
I am executed the below statements using CL. FileA got deleted. I want to know the reason. Please help me to understand the logic. PGM OVRDBF FILE(TESTPF) TOFILE(TESTPF1) OVRDBF FILE(TESTPF1) TOFILE(TESTPF2) OVRDBF FILE(TESTPF2) TOFILE(TESTPF) DLTF FILE(TESTPF) DLTOVR FILE(*ALL) ENDPGM FILEA got deleted. What is the reason?

Software/Hardware used:
AS400
ASKED: October 4, 2012  11:10 AM
UPDATED: October 4, 2012  11:45 AM

Answer Wiki

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

Discuss This Question: 8  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
  • TomLiotta
    FILEA got deleted. Wat is the reason.   Since your program example doesn't reference FILEA anywhere, there is no way for us to tell how it got deleted nor why it was deleted.   Why do you think that this program was the cause of the deletion?   Tom
    125,585 pointsBadges:
    report
  • ToddN2000
    Am I reading this right???  Why override a file then override the overridden file, and again back to overriding to the original file ??? it makes no sense to me..If it's a typo and your TESTPF file is the FILEA you say is deleted, then yes it's gone by the way of stacking multiple overrides to the same file.
    6,360 pointsBadges:
    report
  • philpl1jb
    Interview or homework?  The override command has no effect on the dltf command.
    48,575 pointsBadges:
    report
  • TomLiotta
    yes it’s gone by the way of stacking multiple overrides to the same file.   Since overrides affect an open data path (ODP) and the program never opens any file, the OVRDBFs are irrelevant.   Tom
    125,585 pointsBadges:
    report
  • rajeshece
    Hi All, Thanks for all the answers. Its homework. I have executed the same code. FileA got deleted. I want to know how its behaving. As per my understanding, OVRDBF will have no effect on the dltf command. Am i correct?
    1,215 pointsBadges:
    report
  • philpl1jb
    Perhaps this is just an American expression..A red herring is a clue which is intentionally or unintentionally misleading or distracting from the actual issue.
    48,575 pointsBadges:
    report
  • philpl1jb
    And that is no canard!
    48,575 pointsBadges:
    report
  • TomLiotta
    OVRDBF will have no effect on the dltf command. Am i correct?   Why would it? The DLTF command doesn't issue an 'open' operation, so there's nothing for an override to affect. But you could have just looked at the system documentation to see that DLTF and overrides aren't related.   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