1,040 pts.
 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:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. Michael Tidmarsh   14,000 pts. , rajeshece   1,040 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

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

 110,105 pts.

 

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.

 4,115 pts.

 

Interview or homework? 
The override command has no effect on the dltf command.

 44,630 pts.

 

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

 110,105 pts.

 

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,040 pts.

 

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.

 44,630 pts.

 

And that is no canard!

 44,630 pts.

 

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

 110,105 pts.