Deleting the physical files without deleting logical files

180 pts.
AS400 file changes
Logical Files
MIMIX on iSeries
Physical File
Hi, Can anybody tell me how to delete the physical file(PF-DTA) without deleting its dependent files (LF).

Actually we are having Mimix running in our live and DR system, in the DR I want to delet PF only and resync with the live.

Software/Hardware used:

Answer Wiki

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


Direct Deletion of PF is not possible without deleting LF’s of that PF.
In this case, If you want to resync with live data. You should be re-building the LF’s associated with it.


Discuss This Question: 8  Replies

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.
  • CharlieBrowne
    Sincve only the PF actually contains data and the LF is just pointers, you can do a CLRPFM ro get rid of the data. THen when you repopulate it, the LF will rebuild.
    62,385 pointsBadges:
  • pdraebel
    Since MiMiX is involved and you want to Sync a PF you should not worry about the LF's on the target. If I am not mistaken the Synchronisation will take care of rebuilding the Lf''s on the target as you Sync the Pf
    7,545 pointsBadges:
  • Splat
    Why do you think your data on the DR system is not in sync with your data on the live system?
    12,895 pointsBadges:
  • RossHowatson
    You can clear the Physical File and restore the data manually into the Physical File from another library but you cannot delete the Physical File without first deleting all of the logical files. Think of removing the children (logical and join logical files) before removing the parent (physical file). If you want to replace the data in the PF from a backup that just contains PF data restore this into a different library and then do a CPYF from one library back into the first file. If you are doing a restore from a SAVLIB then clear or delete the library and do the RSTLIB. At least you will find out if you have new logical files being built on your physical files. In V7R1 (and possibly V6.1) you can do a system restore of all user libraries and restore all physical files before restoring logical files before it restores the data. This handles logical files in one library that are before the physical file library.
    630 pointsBadges:
  • TomLiotta
    Logical files can't exist without the physical files that they refer to. In order to provide a useful response, we should know why you want to delete the physical if all you need to do is sync the data. AFAIK, MIMIX will do a sync without deleting anything. Alternatively, delete all of them and bring them over together. What is the actual problem that you need to solve? Tom
    125,585 pointsBadges:
  • Rrbond07
    You can not delete a PF while there is a LF over it. You can delete the object FL code then delete the PF. The LF can be recomplied later.
    750 pointsBadges:
  • jprobin
    Rename the PF object.
    10 pointsBadges:
  • aceofdelts
    I believe you could remove the PF member. I've not tried this, though I have removed LF members (to keep the definition but remove the pointers).
    2,550 pointsBadges:

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.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: