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
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
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.
Interview or homework?
The override command has no effect on the dltf command.
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
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?
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.
And that is no canard!
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