//STEP01 EXEC PGM=FMNMAIN
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSTOTAL DD SYSOUT=*
//DDIN DD DISP=SHR,DSN=CICSESA.CICS.TEST
//DDOUT DD DISP=SHR,DSN=CICSESA.CICS.TEST.AFTER
//SYSIN DD *
$$FILEM DSC ,
$$FILEM MEMBER=*,REPLACE=YES,PROC=*
*FASTREXX
IF FLD_CO(,,,'CCRCLR=') THEN
RETURN 'DROP'
/*
//*
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSTOTAL DD SYSOUT=*
//DDIN DD DISP=SHR,DSN=CICSESA.CICS.TEST
//DDOUT DD DISP=SHR,DSN=CICSESA.CICS.TEST.AFTER
//SYSIN DD *
$$FILEM DSC ,
$$FILEM MEMBER=*,REPLACE=YES,PROC=*
*FASTREXX
IF FLD_CO(,,,'CCRCLR=') THEN
RETURN 'DROP'
/*
//*
So what I am looking for is a batch File Manager job that will ADD a line of JCL after it find another specific line, in all members in a PDS. For example, if it finds 'ENV=TEST,', then I would like it to insert a line like '// OMEG=YES,'. If someone can provide an example, that would be great!