If the existing program does a "reset", it probably 
rewrites the directory and resets the LSTAR to make 
it look empty.  This would be very efficient.  

If there are many members, any method, even in assembler, that 
deletes members one at a time, will potentially suck performace-wise.  


 
> Date: Wed, 23 Jun 2010 23:54:58 -0400
> From: choelsc...@humana.com
> Subject: Re: Delete all members of a PDS that is allocated
> To: IBM-MAIN@bama.ua.edu
> 
> 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
> choelsc...@humana.com
> 
> you only need to test the programs that you want to work correctly 
> 
> 
> 
> 
> 
> 
> From:
> Lizette Koehler <stars...@mindspring.com>
> To:
> IBM-MAIN@bama.ua.edu
> 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 <IBM-MAIN@bama.ua.edu>
> 
> 
> 
> 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
                                          
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to