Need a scan the whole master file and find the members that contain a certain string.

Document ID : KB000054880
Last Modified Date : 14/02/2018
Show Technical Document Details


Need to scan a master file to find a character string in all the members.


Using the JCL below:

//LIB2        EXEC  PGM=AFOLIBR,PARM='DEPTH=25'                     
//MASTER       DD DSN=your.master.file,DISP=SHR                      
//OSJOB         DD DUMMY                                           
//LIST            DD  SYSOUT=*                                        
//SYSPRINT    DD  SYSOUT=*                                        
//SYSIN         DD  *                                               
-OPT UTILITY                                                            
-SCAN *search string*