> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Paul Gilmartin
> Sent: Friday, November 20, 2015 8:58 AM
> To: [email protected]
> Subject: Re: Deleting all members of a pds
> 
<snip>

> When better techniques become available, perhaps the inferior ones should
> me marked in future editions as deprecated.

So every time IBM makes an update to a marketed product, they should search all 
the freebies to see if they might need some pedantic update to the code or 
documentation?  It's not enough that IBM allows people to spend time on the 
clock to develop this stuff for which they will not charge and make it 
available to all, even non-customers and competitors?  That would probably kill 
the incentive to release any "as is/no warranty or support" tools of any kind.
 
> But, yes, they continue to have instructional value, at least as syntax 
> examples.
> 
> >>>>Does it at least sort the list in descending order?
> >
> >Descending order of what? member names or Size? Why exactly do you need to
> >sort the list ? Do you think it would make a difference to the directory
> >blocks? And just for the record as DFSORT is capable of sorting the member
> >names in either ascending/descending order.
> >
> Member names.  I believe that when the alphabetically first member is deleted
> all following directory blocks (not data blocks) are rewritten to fill the 
> gap, an
> unwelcome quadratic behavior.  Deleting the last member requires rewriting 
> only
> the last active directory block.  (Yes, I thought this would be a natural 
> application
> of DFSORT.  I bet DFSORT is faster than quadratic time.)

Didn't anyone read the reference?  On page 84:  " For PDSs with lots of 
members, you can improve the performance of the IDCAMS step by deleting the 
members in reverse order. To do this, just add:
                    SORT FIELDS=(1,8,CH,D)
to CTL2CNTL to sort the members in descending order.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to