Erasing data on z/OS FBA devices

It is possible to use the z/OS FBA devices when using the devices as transfer devices. IOSFBA READ/WRITE remembers the ranges of blocks used on the z/OS FBA devices, allowing IOSFBA ERASE to construct a channel program to erase the data. This channel program erases all data from the lowest to highest contiguous blocks referred to in the IOSFBA READ/WRITE processing.

It may be more efficient for the calling program to zero the storage buffers used and invoke the IOSFBA WRITE service to write zeros to the blocks used.

Caution should be used by the calling program to ensure that data is not inadvertently erased.