How to delete physical file member?

75 pts.
Tags:
AS400 physical file
CLRPFM
Physical File
I tried to delete physical file member in AS/400 by using CLRPFM command...but nothing get deleted...why?

Answer Wiki

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

CLRPFM only clears (or empties it of data)
to remove it use command RMVM
Ot use DLTF to delete the file

but if there is a logical file related to that file you can not delete it.
first delete related
lf than delete PF.

Take care..

Discuss This Question: 10  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.
  • MDratwa
    CLRPFM does not delete a member but deletes all the records in that member. If you want to delete a member, use "RMVM" to remove a member.
    785 pointsBadges:
    report
  • ToddN2000
    As a side note, if you have any logical files over the physical you cannot delete the PF without deleting the LF's first.
    54,455 pointsBadges:
    report
  • pdraebel
    Checking for logicals that refer to a physical can be done with DSPDBR command.
    6,325 pointsBadges:
    report
  • RayM
    Another thing to consider is logical files. You cannot remove a member that has a logical file member pointing to it.
    265 pointsBadges:
    report
  • Featured Member: ToddN2000 - ITKE Community Blog
    [...] How to delete physical file member? [...]
    0 pointsBadges:
    report
  • Splat
    But you can remove a logical file member and then remove the physical file member.
    9,875 pointsBadges:
    report
  • Featured Member: MDratwa - ITKE Community Blog
    [...] How to delete physical file member? [...]
    0 pointsBadges:
    report
  • baluyadav
    difference between clrpfm and rmvm

    10 pointsBadges:
    report
  • TheRealRaven
    difference between clrpfm and rmvm

    You would read the help text of the commands to learn the differences between commands, rather than post to a Q&A forum. If the help text said something that didn't make sense to you, that's when Q&A would be useful.

    Read the help text first. (Or simply look them up in the on-line documentation.) Learning to use documentation resources is more important than learning a couple commands.
    18,995 pointsBadges:
    report
  • philpl1jb
    That was addressed above by MDratwa on March 7, 2011.
    54,090 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.

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

Following

Share this item with your network: