Multi-Member Files

pts.
Tags:
AS/400
Backup & recovery
DataCenter
We have a file that has multiple members in it. More members can be added through-out the day by one of our applications. The file is being journaled. The file became corrupted. The file was restored using *ALL on the MBROPT command. When attempting to run APYJRNCHG, we received various errors because of the newly created members and records added to the new members. Apparently the RSTOBJ does not remove members that were created since the save. The APYJRNCHG command blew up on the member create. So we specified specific sequence numbers starting after the member create and it blew up on the new record adds to the new members because the record already exists. It ran fine for the members that already existed, but not the new ones. Do you have any ideas on how to either restore so the new members are removed, or APYCHJRN ignoring the new members. Because the application creates the members, we don't know which ones are new and which ones are old. We are on V5R3. Thanks

Answer Wiki

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

Hi
It seems to be a complicated case & one that I havent come across earlier. Anyway, maybe you could try the following after taking a precautionary backup:
1. Filter (list) out the members that were created after the backup. You could try this using DSPFD *MBR & dump the same to an outfile which you could query.
2. Once this is done, copy these members to another temp file as a precautionary measure.
3. Clear (delete) these members from the original file.
4. Then apply the journal changes from the point of the last backup.

Hope this works….Good luck!

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