Can we specify an overide statement without actually specifying any parameters to be overridden.
In one of the exisiting codes (in a CL)I saw a line as follows:
OVRDBF File(ZFT00981) ToFile(ZFT00981)
No parameters were specified. The file name is exactly same.
The program is being used since ages. Hence I know this will not result in any runtime error.
But will this command have any affect on the file access or any affect in the program?
I think it will not have any affect. I think it will not make any difference anywhere even if we remove this line.
Please comment.
Software/Hardware used:
AS/400
ASKED:
May 27, 2011 9:54 AM
UPDATED:
May 30, 2011 5:18 AM
I’m not aware of an impact in normal operations.
Potential impacts do exist, though.
First, a later DLTOVR might fail if this is removed. Ensure that no DLTOVRs reference this OVRDBF.
Second, if parameter defaults have been modified or if a duplicate of the *CMD object exists with different parameters, then there might be overriden values that affect program execution. Make sure that neither of those conditions exist.
Third, programming later in the job might look for an override for ZFT00981 and cause different logic paths depending on existence or non-existence.
There might be other possibilities. Those are what come to mind immediately. None of them seem very likely, especially if there are no comments that indicate something unusual is being done.
Regardless, be prepared for possible side-effects.
Tom