OVRDBF without any parameters specified

5 pts.
Tags:
AS/400
AS/400 Parameters
CL
CL Parameters
IBM iSeries
OVRDBF
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

Answer Wiki

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

Yes, I do agrre with you.
There will not be any impact even after removing the command from CL.
And, When it comes to parameters for that command, it is not mandatory to have the parameters for OVRDBF command. So, it will not give any error.
Make sure that, You are removing corresponding DLTOVR command also.
But, in general we use parameters with this command for Overriding the actual DataBase file.
There will not be any impact of this command in progra. You can test the same by removing the same.

Pradeep.

Discuss This Question: 1  Reply

 
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
    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
    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