z/OS DFSMS Using Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using the OPEN Macro to Position Tape Volumes

z/OS DFSMS Using Data Sets
SC23-6855-00

If the tape was last read forward, LEAVE and REREAD have the following effects.

LEAVE Positions a labeled tape to the point following the tape mark that follows the data set trailer label group. Positions an unlabeled volume to the point following the tape mark that follows the last block of the data set.

REREAD—Positions a labeled tape to the point preceding the data set header label group. Positions an unlabeled tape to the point preceding the first block of the data set.

If the tape was last read backward, LEAVE and REREAD have the following effects.

LEAVE—Positions a labeled tape to the point preceding the data set header label group, and positions an unlabeled tape to the point preceding the first block of the data set.

REREAD—Positions a labeled tape to the point following the tape mark that follows the data set trailer label group. Positions an unlabeled tape to the point following the tape mark that follows the last block of the data set.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014