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


Reading a PDSE Directory

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

You can read a PDSE directory sequentially just by opening the data set (without using positioning macros) and reading it. The PDSE directory cannot be updated. The following rules and guidelines apply to reading a PDSE directory:
  • The DD statement must identify the DSNAME without a member name.
  • You can use either BSAM or QSAM with MACRF=R or G.
  • Specify BLKSIZE=256 and RECFM=F or RECFM=U.
  • If you also want to read the keys (the name of the last member in that block), use BSAM and specify KEYLEN=8.
  • After reading the last PDSE directory entry, you read the next directory, or control passes to your EODAD routine. The last directory entry is indicated with a dummy name of eight bytes of X'FF'.
  • Alias entries with names longer than eight bytes are omitted. To read them, use DESERV.

You can use sequentially read the directories of a concatenation of PDSs and PDSEs. However, you cannot sequentially read a UNIX directory. This is considered to be a like sequential concatenation. To proceed to each successive data set, you can rely on the system's EOV function or you can issue the FEOV macro.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014