Use the FINDMEM (or MEMFIND or FM or MF) statement to print a listing of all member names of selected or all member names and optionally their member generations, of one or more linked partitioned data sets. You can also use FINDMEM to report names of all "orphan" (with no generation 0) PDSE member generations.


Read syntax diagramSkip visual syntax diagramlabel FINDMEM OUTDD= DDnameOUTDSN=DSname( DSname,SHROLD),INDD=DDname(,DDname),INDSN=DSname( DSname,SHROLD),LIST=YESNOALLONLY,AGE= Age,USERID=UID= Uid,ALLGENNOGEN


All keywords have the same meaning and syntax as for the DIRLIST statement.

Output report contents

For each input library specified via INDD= or INDSN= keyword parameter, all matching member names are listed first under the library name heading.

When ALLGEN option is in effect, for each non-zero PDSE member generation, the relative generation number in parentheses follows the member name.

If any "orphan" member generations exist in the library, they are also listed.

Usage notes

  • FINDMEM accepts a concatenation of multiple input partitioned dats sets of various record formats, specified via any valid combination of INDD and INDSN keyword parameters.
  • The last data set statement of the input concatenation may be followed by a group of zero or more SELECT and EXCLUDE statements.