Get the library name from a different user , accept the library name , then send the list of only the Physical files in that library , along with the number of records in each PF , to that user.
Software/Hardware used:
ASKED:
February 3, 2009 6:45 AM
UPDATED:
February 4, 2009 12:33 PM
There is a fast way to do this.
In the QSYS library there is a bunch of system files beginning QADB*.
These files are maintained by the system and must only be opened for read-only.
The file QADBXREF contains a list of ALL the physical and logical files on the system, and SQL views and indices, in all libraries. You can write a query or SQL to extract the information you want.
The fields in this file are:
The keys to the file are DBXLIB, DBXFIL.
There are a number of logicals over this file, which will give you different views of the data. Some of these logicals are in QSYS, others in QSYS2, and yet others in SYSIBM. If you access the data using SQL, don’t use the logicals!
Regards,
Sloopy