Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove mutliple file members 1

Status
Not open for further replies.

vecam

Programmer
Aug 26, 2003
7
US
In an old version of TAATOOL, there is a command called RMVOLDMBR. An example follows:

/* Remove saved members over 90 days old */

ADDLIBLE LIB(TAATOOL)
MONMSG MSGID(CPF0000)
TAATOOL/RMVOLDMBR FILE(BPR500MSV) RETAINDAYS(90) +
CHKDAT(*CRTDAT)


Since our system does not have this command, does anyone know of a way to do this using other code?

Thanks for any help!
 
You could do a DSPFD to an outfile, then read and process MBR info listed.
 
To: arrow483

Thanks for your help!
 
You could also use the QUSLMBR API which takes a bit more work but gives you a lot more info than the DSPFD way. I've got some freeware which you can have (it zips to about 1.4Mb) with some sample code which uses this API.

If you want it post your address here but use # instead of the @ character - there are some real devious b*****ds out there.

PeteJ
(Contract Code-monkey)

It's amazing how many ways there are to skin a cat
(apologies to the veggies)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top