OVRDBF Not working as supposed to

50 pts.
Tags:
CL
OVRDBF
RPG
Here's the program flow CL1 calls RPG1 RPG1 calls CL2 CL2 has OVRDBF on fileA that is being used in RPG1 When the control gies back to RPG1, the file is not overriden. So I thought it might have ended at call level and I tried to do OVRDBF in RPG1 after the control come back from CL2 but still no luck Could anyone help me understnad where am I going wrong. Thanks, SKJ

Answer Wiki

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

First, the OVRDBF needs to be done before the file is opened. Unless you are doing a user-open in RPG1, the file is already open before the OVRDBF.

Second, OVRDBF generally has no affect on programs at a lower call level.

If you can do the OVRDBF in CL1, RPG1 should open the correct file. If the OVRDBF has to be done in CL2, set the OVRSCOPE parameter to *JOB, and define your file in RPG1 as “User Open” and then open it following the call to CL2.

Good Luck,

Leo Burkett

Discuss This Question:  

 
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

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