The following example illustrates how easy it is to use FDRERASE.
Here we are erasing all the offline disks that have a unit address
beginning with either 1A or 1B. For optimum performance, the MAXTASKS
operand has been coded to allow FDRERASE to erase up to 64 disks simultaneously.
//ERASE EXEC PGM=FDRERASE,REGION=0M
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ERASE TYPE=FULL,MAXTASKS=64
MOUNT ERASEUNIT=(1A*,1B*)
Deleting a data set with existing z/OS utilities and programs
may still leave data on a volume. As an example:
- TSO Delete will remove the VTOC pointers
to the tracks containing the data, but it
will not erase the
data from the disk tracks themselves.
- ICKDSF Minimal INIT deletes or rewrites the
VTOC, but it does not erase the data from the disk tracks.
To illustrate the point, we do some before and after track prints using FDRDSF PRINT.
- We start with a data set on disk called “Purge”:
- This is how the disk looks after an ICKDSF Minimal INIT. The VTOC
entry
for “Purge” has been erased but data tracks still contain the data:
- And this how the disk looks after an FDRERASE. Both the VTOC entry and
the actual data itself have been erased from the disk:
FDRERASE tasks can also be initiated, monitored and controlled through a series of
supplied ISPF panels. As you can see from this example, simply locate the volume(s)
on which you wish to perform the operation, then type the appropriate command in
the “Command” line:
--------------------------------- FDRERASE ------------------- Row 1 to 9 of 9
COMMAND ===> SCROLL ===> PAGE
Active QUick ERase SEcure SIm EMpty ABort SUspend REsume OPtions HIstory SOrt
Refresh 0
Command Unit Volume Elapsed Control SMS
Addr Serial Cmp Pass Time Unit Storage
Mask Mask % # Status MM:SS SSID Serial# Group Cyls
------- ---- ------ --- --- -------------- ------- ---- ------- -------- -----
erase 21CD INACTIVE 0311 3390 1113
quick 21CC INACTIVE 0311 3390 1113
|
As well as initiating new tasks and monitoring active tasks,
the panels can also be used to suspend, resume or abort tasks:
Command Unit Volume Elapsed Control SMS
Addr Serial Cmp Pass Time Unit Storage
Mask Mask % # Status MM:SS SSID Serial# Group Cyls
------- ---- ------ --- --- -------------- ------- ---- ------- -------- -----
suspend 21C0 12 1/1 ACTIVE QUICK 0:19 0310 10017
resume 21C3 12 1/1 SUSPEND QUICK 0:15 0313 10017
abort 21C5 33 1/1 ACTIVE QUICK 0:19 0315 10017
|
return to top
|