How do I scan a master file for a string of data in both upper and lower case?

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


Need to find all members that contain a string of data both in upper and lower case.


Using the JCL below scanning a string of PRT and prt:

//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 /PRT/                                                 
 -SCAN /prt/