Question on OVRDBF command

0 pts.
Tags:
RPG
Suppose, in my CL program, I am using the following command: OVRDBF file(file1) tofile(file2) The question is: In my RPG program, which file will be read in C specs..will it be Read file1 or Read file2?? Thanks.
ASKED: April 13, 2005  8:05 PM
UPDATED: October 21, 2009  5:42 AM

Answer Wiki

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

Hi

Your RPG program will read file1, and the operating system will then use the override to get the data from file2.

All the best

Jonathan

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
    Note that it will depend on what you code for the F-spec. Whichever name you code on the F-spec, that will be the name you must code on your READ statement. Of course, if the override is in effect, the actual file being read is going to be file2. That's the point of the override -- you code a program to process some generic name, and different overrides allow you to run the program against different files. The coded name doesn't change, but the file being processed does change. You use the same program and control what it does from the outside. 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