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


FIND—Position to the Starting Address of a Member

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

To position to the beginning of a specific member, you must issue a FIND macro. The next input or output operation begins processing at the point set by the FIND. The FIND macro lets you search a concatenated series of PDSE and PDS directories when you supply a DCB opened for the concatenated data sets.

There are two ways you can direct the system to the right member when you use the FIND macro. Specify the address of an area containing the name of the member, or specify the address of the TTR field of the entry in a BLDL list you have created, by using the BLDL macro. In the first case, the system searches the directory of the data set for the relative track address. In the second case, no search is required, because the relative track address is in the BLDL list entry.

The system searches a concatenated series of directories when a DCB is supplied that is opened for a concatenated PDS.

If you want to process only one member, you can process it as a sequential data set (DSORG=PS) using either BSAM or QSAM. You specify the name of the member you want to process and the name of the PDS in the DSNAME parameter of the DD statement. When you open the data set, the system places the starting address in the DCB so that a subsequent GET or READ macro begins processing at that point. You cannot use the FIND, BLDL, or STOW macro when you are processing one member as a sequential data set.

Because the DCBRELAD address in the DCB is updated when the FIND macro is used, you should not issue the FIND macro after WRITE and STOW processing without first closing the data set and reopening it for INPUT processing.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014