1) execute IEHLIST to produce list of members 2) use any report writer to parse output and create appropriate input to ... 3) IEHPROGM to delete members 4) IEBCOPY lib to itself to clean up directory
Chris Hoelscher IDMS/DB2 System & Database Architect Humana Inc 502-476-2538 [email protected] you only need to test the programs that you want to work correctly From: Lizette Koehler <[email protected]> To: [email protected] Date: 06/23/2010 08:47 PM Subject: Re: [IBM-MAIN] Delete all members of a PDS that is allocated Sent by: IBM Mainframe Discussion List <[email protected]> It is going to depend. You can write a REXX that uses the LM functions to delete a member. If you have PDSMAN with FASTCOPY you can ZERODIR. If you have SAS you can KILL a pds. And I am sure there are other ways. The requirement is that the dataset is enqueued with DISP=SHR and that the SCHEDULER does not try to load from it when you are emptying it. Lizette > > Does anyone know of a way to delete all of the members of a PDS which > is > allocated by job scheduler software? We currently use an assembler > program > that does a reset(I think), but management wants us to not use > assembler. I > know that IEHPROGM can delete a specific member, but the members change > from day to day. I don't think you can wild card it. > > TIA ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

