100 pts.
 clearing multple members in a 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

Software/Hardware used:
ASKED: February 10, 2009  8:17 PM
UPDATED: February 14, 2009  7:53 PM

Answer Wiki:
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
Last Wiki Answer Submitted:  February 11, 2009  3:58 pm  by  philpl1jb   44,190 pts.
All Answer Wiki Contributors:  philpl1jb   44,190 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi,

You can also use CLRPFM :-

CLRPFM FILE(yourlib/yourfile) MBR(*ALL)

Regards,

Martin Gilbert.

 23,625 pts.

 

Thanks Martin, but i don’t have the *ALL option on the clrpfm command. only *FIRST, *LAST or MEMBER name.

mike

 100 pts.

 

Hi,

Maybe it’s something new – I hadn’t noticed it before. We’re on V5R4.

Regards,

Martin Gilbert.

 23,625 pts.

 

We’re at V5R3 and we have the option of clrpfm member *all

 120 pts.

 

MBR(*ALL) not available till V5R2

 10 pts.

 

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

 44,190 pts.