The only general purpose control statement scanner in z/OS that I'm aware of is the IKJSCAN and IKJPARS functions in TSO. It's an Assembler interface and is described in TSO/E Programming Guide
and TSO/E Programming Services
. IKJSCAN and IKJPARS have been around since the beginning of TSO. I've always thought TSO inherited them from the CRJE product. They have been enhanced to support AMODE 31 operation, but other than that there has been minimal change since then. IKJPARS still accepts OS/360 PPLs and PCLs (control blocks used when calling IKJPARS). These routines are not
used to scan PARMLIB members.