Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Handling End of Volume and End-Of-Data-Set Conditions z/OS DFSMSdfp Advanced Services SC23-6861-01 |
||||||||||||||||
The
EOV macro instruction identifies end-of-volume and end-of-data-set
conditions. For an end-of-volume condition, EOV causes switching volumes
and verifying or creating standard labels. For an end-of-data-set
condition (except when another data set is concatenated), EOV causes
your end-of-data set routine to be entered. Before processing trailer
labels on a tape input data set, decrement the DCBBLKCT field. Your
program issues EOV for any of the following reasons:
To determine how the system disposes of a tape volume when a program issues an EOV macro, see the description of the DISP parameter of the OPEN macro in z/OS DFSMS Macro Instructions for Data Sets. For magnetic tape, issue EOV when either a tapemark is read or a write command received a unit exception condition. You can also issue EOV to go to the next volume or data set even though neither a tapemark was read nor end-of-tape reached. Bit settings in the 1-byte DCBOFLGS field ofthe DCB determine the action taken when EOV is executed. Before issuing EOV for magnetic tape or DASD make sure that appropriate bits are set in DCBOFLGS. Bit positions 2, 3, 6, and 7 of DCBOFLGS are used only by the system; you are concerned with bit positions 0, 1, 4, and 5. The use of these DCBOFLGS bit positions is as follows:
If bits 0 and 5 of DCBOFLGS are both off when EOV is executed, EOV spaces the tape past a tapemark, and standard labels, if present, are verified on both the old and new volumes. The direction of spacing depends on bit 1. If bit 1 is off, the tape is spaced forward; if bit 1 is on, the tape is backspaced. For tape, if bit 0 is on, but bit 5 is off, EOV writes a tapemark at the current position, which is assumed to be following the last data record of the data set on the current volume. EOV also writes labels on both the old and new tapes if they are labeled. See z/OS DFSMS Using Magnetic Tapes for information on label processing. For DASD, if bit 0 is on, EOV attempts to write a file mark. See the DCBFDAD description in Device-Dependent Parameters for more information. When you issue EOV, the system might rebuild the DEB at another location. After each EOV, obtain the rebuilt DEB address from the DCB. If the data set was allocated without the nocapture option of dynamic allocation, then EOV might have uncaptured the UCB for the previous volume. If so, that captured UCB address might become invalid. Note that the 24-bit address of the new UCB might be the same as the previous UCB. After issuing EOV for sequentially organized output data sets on direct access volumes, you can determine whether additional space was obtained on the same or a different volume. Do this by examining the DEB and the UCB. If the volume serial number in the UCB has not changed, additional space was obtained on the same volume. Otherwise, space was obtained on a different volume. The format of the EOV macro is:
|
Copyright IBM Corporation 1990, 2014
|