OVRDBF Command (Record not present after file Overridden.)

115 pts.
Tags:
AS/400
AS/400 commands
OVRDBF
I'm trying to execute following command:
OVRDBF FILE(PF2) TOFILE(TESTLIB/PF@) MBR(*ALL) SHARE(*YES)
PF2 file having records and PF@ is replica of PF2. PF@ doesn't have any record but after OVRDBF, it should have records. After executing above OVRDBF command, PF@ still showing blank.

Answer Wiki

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

When using the OVRDBF command you are telling the program to override all references of the file PF2 and use the tofile PF@ instead. It does not move any data. It just creates a new reference point.How is your PF@ file created? You said it’s a replica and does not have any records. So you basically told your program I don’t want to use PF@ (with data records) and replace it with PF@(with no data records). 

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