[email protected] (Paul Gilmartin) wrote:
On 2015-07-22 13:45, John Eells wrote:
So does IDCAMS DELETE these days (I forget when we added this). Both
likely use STOW INIT.
Syntax? That would appear to DELETE the entire library. But DELETE
followed by reallocate is certainly a valid approach. Why not?
The syntax is pretty clearly documented in Access Method
Services...though the book does not say a compress is unecessary
afterward. Feel free to submit a comment if you believe it should, or if
you think the syntax's description needs to be better:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt2i2a1/20.1.1?SHELF=all13be9&DT=20120126090739&CASE=
Says: "If you are deleting a member of a non-VSAM partitioned data set,
the entryname must be specified in the format: pdsname(membername). If
you specify the entryname in the format of a partition data set,
pdsname(*), the command deletes all the members in the partition data set."
Why not just delete and reallocate the data set? A number of reasons.
You might not have ALTER access to the data set. There is no assurance
it will wind up in the same place (or even fit on the same volume) in
the general case. Other possible reasons why not are left as an Exercise
to the Alert Reader.
<snip>
Is there a non-assembler interface for this? Seems a good candidate
for ISPF DSLIST.
IDCAMS DELETE *is* a non-assembler interface (grin). OK, more seriously,
I have not played with this in ISPF OPT3.4 to see whether using DEL (*)
would work as a line command. You could try it and let us know...maybe
what you want is already there. ;-)
Lately I asked here how I might coalesce data set extents (I've
been using HMIGRATE/HRECALL.) Someone said IBM supplies such a
utility now. Google is not my friend here:
https://xkcd.com/1532/
... tells me only (mostly) about DB2.
I must confess that I see no connection between that xkcd cartoon and
DB2. But maybe this will help?
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt2u2b1/2.3.5.1?SHELF=all13be9&DT=20120113165441&CASE=
--
John Eells
z/OS Technical Marketing
IBM Poughkeepsie
[email protected]
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN