Don't like lower case in JCL if I can avoid it.
Doing a parse to extract a number in a row, the text is partly lower case.
the PARSE looks like this:
//*--------------------------------------------------------
//* STEPNAME: S020
//* STEPINFO: EXTRACT AMOUNT OF RECORDS IN GBALOG
//*--------------------------------------------------------
//S020 EXEC PGM=SORT
//SORTIN DD *
*** Total of read records: 000000000000321
*** Records processed : 000000000000313
//SYMNAMES DD *
RELREC,C'*** TOTAL OF READ RECORDS: '
THETEXT,01,28,CH
//TOOLMSG DD SYSOUT=*
//SORTOUT DD DISP=(NEW,PASS),
// LRECL=015,RECFM=FB,
// SPACE=(TRK,(01,01),RLSE),
// DSN=&&GBACNT
//DFSMSG DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC PARSE=(%=(ENDAT=RELREC),
%00=(STARTAFT=BLANKS,FIXLEN=15)),
BUILD=(%00)
INCLUDE COND=(THETEXT,EQ,RELREC)
//*
//* STEPNAME: S020
//* STEPINFO: EXTRACT AMOUNT OF RECORDS IN GBALOG
//*--------------------------------------------------------
//S020 EXEC PGM=SORT
//SORTIN DD *
*** Total of read records: 000000000000321
*** Records processed : 000000000000313
//SYMNAMES DD *
RELREC,C'*** TOTAL OF READ RECORDS: '
THETEXT,01,28,CH
//TOOLMSG DD SYSOUT=*
//SORTOUT DD DISP=(NEW,PASS),
// LRECL=015,RECFM=FB,
// SPACE=(TRK,(01,01),RLSE),
// DSN=&&GBACNT
//DFSMSG DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC PARSE=(%=(ENDAT=RELREC),
%00=(STARTAFT=BLANKS,FIXLEN=15)),
BUILD=(%00)
INCLUDE COND=(THETEXT,EQ,RELREC)
//*
//Lasse