How to create a report from a batch job to list all the members in a CA Librarian Master file?
search cancel

How to create a report from a batch job to list all the members in a CA Librarian Master file?

book

Article ID: 42122

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

Question:

How to create a report from a batch job to list all the members in a CA Librarian Master file?

 

 

Environment

Release: 4.4

Resolution

 

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:

RUN NO. ###   DATE=mm/dd/yy  TIME=hhmm    MASTER FILE STATISTICAL SUMMARY   
TOTAL NUMBER OF RECORDS - - - - - - - - - 85,639                              
TOTAL NUMBER OF MODULES - - - - - - - - - -  127                              
BLOCKSIZE - - - - - - - - - - - - - - - - 27,998                              
TOTAL NUMBER OF BLOCKS - - - - - - - - - - - 750                              
TOTAL NUMBER OF FREE BLOCKS - - - - - - - -  486                              
TOTAL NUMBER OF USED BLOCKS - - - - - - - -  262                              
TOTAL NUMBER OF DEAD BLOCKS - - - - - - - - -  2  (DUE TO PROGRAM ABENDS)     
TOTAL NUMBER OF TRACKS - - - - - - - - - - - 375  (BDAM ONLY)                 
TOTAL NUMBER OF FREE TRACKS - - - - - - - -  243  (BDAM ONLY)                 
TOTAL NUMBER OF INDEX BLOCKS - - - - - - - - - 1                              
TOTAL NUMBER OF MASTER INDEX ENTRIES - - - - - 1                              
PERCENTAGE OF FREE SPACE - - - - - - - - - - 64%                              
PERCENTAGE OF DEAD SPACE - - - - - - - - - -  0%                              
LARGEST MODULE (IN BLOCKS) - - - - LARGEMEM(528)                               

For more details about the Master File Index reports, please refer to Master File Indexes  in the Librarian System Services Reference Guide.