Is there a Librarian utility or another way to identify all Librarian Master files on a system?
search cancel

Is there a Librarian utility or another way to identify all Librarian Master files on a system?

book

Article ID: 37360

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

 

Is there a Librarian utility or another way to identify all Librarian Master files on a system? 

 

 

Environment

Release: LIB-AM00200-4.4-CA-Librarian-Access Method
Component:

Resolution

 

Unfortunately, there is no Librarian utility to read the system catalogs and identify  Librarian Master files. 


However, you can run a  Librarian Master Index Statistical report against a file and see if it is a Master file -- 

//INDEX EXEC PGM=AFOLIBR,PARM='NRJS,NJTA' 
//SYSPRINT DD SYSOUT=* 
//INDEX DD SYSOUT=* 
//MASTER DD DISP=SHR,DSN=LIBR.V44.LVL1.PRODMAST 
//OSJOB DD DUMMY 
//SYSIN DD * 
-OPT INDEX(S) 
-END 
//* 



If the file is not a   Librarian Master file, it will return a LIBR0003E error -- 

LIBR0003E MASTER FILE MASTER IS INVALID OR HAS NOT BEEN INITIALIZED. 

 

Additional Information: 

Traditional Librarian Master files can be BDAM or VSAM organization; Wide Record Master files are PDS or PDS/E organization,  so we cannot eliminate any files based on organization.