Question:
How to create a report from a batch job to list all the members in a CA Librarian Master file?
Release: 4.4
Here is the batch job JCL to create Master File Index reports of a Librarian Master file:
//*******************************************************************
//* ===> MASTER FILE INDEX *
//* -OPT INDEX *
//* ===> MASTER FILE INDEX (MGMT) - 2 LINE REPORT *
//* -OPT INDEX(M) *
//* ===> MASTER FILE INDEX (STAT) *
//* -OPT INDEX(S) *
//*******************************************************************
//*
//INDEX EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'
//SYSPRINT DD SYSOUT=*
//INDEX DD SYSOUT=*
//MASTER DD DISP=SHR,DSN=hlq.mlq.LIBR.MASTER.FILE
//OSJOB DD DUMMY
//SYSIN DD *
-OPT INDEX
-END
//*
As coded, the -OPT INDEX control statement creates the standard 1 line per member Master File Index report.
Specify -OPT INDEX(M) to get the 2 line per member Management report.
Specify -OPT INDEX(S) for the Statistical Summary report that gives just stats for the Master file:
For more details about the Master File Index reports, please refer to Master File Indexes in the Librarian System Services Reference Guide.