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

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

book

Article ID: 54985

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

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

Environment

Release:
Component: C21E

Resolution

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