I'd like to parse out the records from the file below that begin with a: "./"
./ ADD NAME=AB00001
//AB00001 JOB (DAB,PROD), Y09/10/2004 AB00001
// CLASS=H AB00001
//*MAIN LINES=(2000,W,50) AB00001
//*FORMAT PR,DDNAME=COMOUT,PRTY=2 AB00001
//AB01PRC EXEC AB01PRC, AB00001
// REGION=8000K AB00001
./ ADD NAME=AB00002
//AB00002 JOB (DAB,PROD), Y09/10/2004 AB00002
// REGION=8000K AB00002
./ ADD NAME=AB00006
//AB00006 JOB (DAB,PROD), Y09/10/2004 AB00006
// CLASS=H AB00006
//ABCFIST EXEC ABCFIST, AB00006
// REGION=8000K AB00006
./ ADD NAME=AB00007
//AB00007 JOB (DAB,PROD), Y09/10/2004 AB00007
// AB00007
$DD=PAYLOUT
JDE=ABLEDG,JDL=SYSOT2
$DD=PRTJRNL
JDE=PDAILY,JDL=SYSOT2
//*ENDDATASET AB00007
//ABCLEDG EXEC ABCLEDG, AB00007
// REGION=8000K AB00007
./ ADD NAME=AB00016A
//AB00016A JOB (DAB,PROD), Y09/10/2004 AB00016A
// CLASS=H AB00016A
//ABMSUBS EXEC ABMSUBS, AB00016A
// #JI,ID=2 RUN IN FEB, MAR, MAY JUN, AUG, SEP, NOV & DEC AB00016A
//AB016A.OUTPTFL DD DSN=NML.AGYBOOKS.PRODDATA.STMTSMON(+1) AB00016A
//AB16PRC EXEC AB16PRC, AB00016A
// REGION=8000K AB00016A
#JEND ./ ADD NAME=AB00016B
//AB00016B JOB (DAB,PROD), Y09/10/2004 AB00016B
// CLASS=H AB00016B
//ABMSUBS EXEC ABMSUBS, AB00016B
// REGION=8000K AB00016B
//DAB33.FIELDFL DD SYSOUT=(E,,AB28),HOLD=YES, AB00016B
// DCB=(NML.DATAPROC.PRODDATA.NMLPRINT) AB00016B
//DAB33.HOMEFIL DD SYSOUT=(E,,AB29), AB00016B
// DCB=(NML.DATAPROC.PRODDATA.NMLPRINT) AB00016B
./ ADD NAME=AB00020
//AB00020 JOB (DAB,PROD), Y09/10/2004 AB00020
// CLASS=H AB00020
//ABREQFN EXEC ABREQFN, AB00020
// REGION=8000K AB00020
./ ADD NAME=AB00029A
And create a new file with the only third field from the record which would then look like this:
AB00001
AB00002
AB00007
AB00016A
AB00020
AB00029A
Thanks
./ ADD NAME=AB00001
//AB00001 JOB (DAB,PROD), Y09/10/2004 AB00001
// CLASS=H AB00001
//*MAIN LINES=(2000,W,50) AB00001
//*FORMAT PR,DDNAME=COMOUT,PRTY=2 AB00001
//AB01PRC EXEC AB01PRC, AB00001
// REGION=8000K AB00001
./ ADD NAME=AB00002
//AB00002 JOB (DAB,PROD), Y09/10/2004 AB00002
// REGION=8000K AB00002
./ ADD NAME=AB00006
//AB00006 JOB (DAB,PROD), Y09/10/2004 AB00006
// CLASS=H AB00006
//ABCFIST EXEC ABCFIST, AB00006
// REGION=8000K AB00006
./ ADD NAME=AB00007
//AB00007 JOB (DAB,PROD), Y09/10/2004 AB00007
// AB00007
$DD=PAYLOUT
JDE=ABLEDG,JDL=SYSOT2
$DD=PRTJRNL
JDE=PDAILY,JDL=SYSOT2
//*ENDDATASET AB00007
//ABCLEDG EXEC ABCLEDG, AB00007
// REGION=8000K AB00007
./ ADD NAME=AB00016A
//AB00016A JOB (DAB,PROD), Y09/10/2004 AB00016A
// CLASS=H AB00016A
//ABMSUBS EXEC ABMSUBS, AB00016A
// #JI,ID=2 RUN IN FEB, MAR, MAY JUN, AUG, SEP, NOV & DEC AB00016A
//AB016A.OUTPTFL DD DSN=NML.AGYBOOKS.PRODDATA.STMTSMON(+1) AB00016A
//AB16PRC EXEC AB16PRC, AB00016A
// REGION=8000K AB00016A
#JEND ./ ADD NAME=AB00016B
//AB00016B JOB (DAB,PROD), Y09/10/2004 AB00016B
// CLASS=H AB00016B
//ABMSUBS EXEC ABMSUBS, AB00016B
// REGION=8000K AB00016B
//DAB33.FIELDFL DD SYSOUT=(E,,AB28),HOLD=YES, AB00016B
// DCB=(NML.DATAPROC.PRODDATA.NMLPRINT) AB00016B
//DAB33.HOMEFIL DD SYSOUT=(E,,AB29), AB00016B
// DCB=(NML.DATAPROC.PRODDATA.NMLPRINT) AB00016B
./ ADD NAME=AB00020
//AB00020 JOB (DAB,PROD), Y09/10/2004 AB00020
// CLASS=H AB00020
//ABREQFN EXEC ABREQFN, AB00020
// REGION=8000K AB00020
./ ADD NAME=AB00029A
And create a new file with the only third field from the record which would then look like this:
AB00001
AB00002
AB00007
AB00016A
AB00020
AB00029A
Thanks