clearing multple members in a physical file

100 pts.
Tags:
CL
CL programming
CLRPFM
Physical File
Does anyone know of a way (or utility) to clear multiple members in a physical file ? i create multiple members for the file on the fly based upon date/time in a cl program. the file is a weekly archive of data from a transaction processor, and i want to clear it and start over on a weekly basis. i know i can handle this in rpg400, but i don't want to ! mike

Answer Wiki

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

Are you sure that you want to clear the members
I would think that you want to remove the members
would the *ALL in RMVM command do the trick?

Remove Member (RMVM)

e choices, press Enter.

a base file . . . . . . . . . Name
ibrary . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB
ber . . . . . . . . . . . . . Name, generic*, *ALL

Phi

after thinking about it you’re right. i want to remove them. thanks for the response !

mike

Discuss This Question: 6  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.

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
  • Gilly400
    Hi, You can also use CLRPFM :- CLRPFM FILE(yourlib/yourfile) MBR(*ALL) Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Lacag
    Thanks Martin, but i don't have the *ALL option on the clrpfm command. only *FIRST, *LAST or MEMBER name. mike
    100 pointsBadges:
    report
  • Gilly400
    Hi, Maybe it's something new - I hadn't noticed it before. We're on V5R4. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Sofar
    We're at V5R3 and we have the option of clrpfm member *all
    120 pointsBadges:
    report
  • Chathri
    MBR(*ALL) not available till V5R2
    10 pointsBadges:
    report
  • philpl1jb
    Without *all you would have to use dspfd *mbrlist to an outfile read that file into a cl and use cLRPFM or RMVMBR on each member Phil
    49,435 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