Scanning the entire master file for a specific string.
Here is a sample job to scan a whole master file for a certain string. Replace the following:
- *search string* with the string you want to search for.
- your.libr.master with the name of your master file.
//LIB2 EXEC PGM=AFOLIBR,PARM='DEPTH=25'
//MASTER DD DSN=your.libr.master,DISP=SHR
//OSJOB DD DUMMY
//LIST DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
-SCAN *search string*