
Chapter 2. Introducing File Manager 53
2.3.3 Search for a string in all members of a PDS
If you need to determine which members of a PDS contain a particular string,
you can use this utility.
The code to perform this function with File Manager is shown in Example 2-19.
Example 2-19 File Manager string find in a PDS batch step
//*
//* FILE MANAGER BATCH: SEARCH FOR STRING
//*
//STEP01 EXEC PGM=FILEMGR
//STEPLIB DD DSN=FMN.SFMNMOD1,DISP=SHR
//* DD DSN=IGY.SIGYCOMP,DISP=SHR
//SYSPRINT DD SYSOUT=*
//FMNTSPRT DD SYSOUT=*
//SYSTERM DD SYSOUT=*
//DDIN DD DISP=SHR,DSN=YOUR.CHANGE.MGMT.UAT.JCLLIB
//SYSIN DD *
$$FILEM FCH INPUT=DDIN,MEMBER=*,
$$FILEM ...