Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
26.1.12 Search for a string in all members of a PDS If you must 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 26-11. Example 26-11 File Manager string find in a PDS batch step //* //* FILE MANAGER BATCH: SEARCH FOR STRING //* //STEP01 EXEC PGM=FMNMAIN //STEPLIB DD DSN=ADTOOLS.FM610.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 PROC=* IF CO(INREC,'UNIT=CART') | , CO(INREC,'UNIT=TAPE') THEN RETURN ELSE RETURN `DROP' /+ What is happening in this step