FILEINFO: create data base of file parameters
Description
Extracts information for all files in a library and creates a
file of that information. Program includes on-screen
documentation that describes the data file layout.
Categories
Disk Management
REPORT enhancement
System Operation
Related files
FILEINFO: Object file for utility.
User Instructions
The FILEINFO utility accumulates data on all of the files in
a library, producing a data file. Information in this file
includes the modification and ownership history, number of
blocks used and allocated, file type, record size, and
extents. This data file can then be used for disk space
analysis or other management purposes.
The utility prompts for the library to be searched and the
volume where it resides. It then requests the location of
the data file to be produced. When all of this information
has been entered, the library is processed and FILEINFO ends.
The completed file may be then be processed by a user
program, the Wang File Management utilities (REPORT,
DATENTRY, or INQUIRY), or any other means. A Wang control
file is required for use with the File Management utilities;
this is not supplied and must be constructed by the user.
Press PF(14) at the INPUT screen to see a description of the
fields in the file.
Programmer Instructions
All major screens in FILEINFO are GETPARMs, and it may easily
be controlled from a procedure.
VOLUME Press (RETURN) to continue or PF(14) for file
structure documentation.
LIBRARY (blank) The name of the library to be
VOLUME (blank) searched and the volume where it
resides.
FILEINFO Press (RETURN) to continue.
FILE (blank) The name and location of the file to
LIBRARY [outlib] be created.
VOLUME [outvol]
Example of use
Easily used as a small-scale disk management utility. Can be
run under procedure control, extracting information about
specific libraries. This information can be analyzed, and
files reorganized or deleted manually.
For example, here's how FILEINFO might be used to detect and
report on files in more than three extents:
- Write a procedure to extract file information from
production data libraries on the system.
- Use INQUIRY or REPORT to select records where the number of
extents is greater than three.
Comments
Produces an 80-character consecutive file with most data
required for disk management. Limited field size in record
count (six characters) limits effectiveness for large files.