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

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

book

Article ID: 54880

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

Description:

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

 

Environment

Release:
Component: C21E

Resolution

Solution:

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*                                                         
-END                                                                    
/*