List the header and index
- Last UpdatedOct 03, 2024
- 1 minute read
Before you run this command, you must shut down the subsystem that owns the file.
-
In a command line window, change to the PI\adm directory.
-
Type:
pidiag -fb path [-header | -dv]
where path is the complete path of the file.
Use the -header option to list only the header (no index). Use the -dv option to display only the file’s version.
If the command returns an error, see Recover file-base file to fix the error.
Example
With the header information, Technical Support can determine if there are any errors in the structure of the file:
D:\PI\adm>pidiag -fb d:\pi\dat\pidigst.dat -header
PIfilebaseheader[$Workfile: pifile.cxx $ $Revision: 125 $]::
File Name: D:\PI\dat\pidigst.dat
Major Version: 4
Minor Version: 0
Byte Alignment: 1
Directory Location: 1024
Directory Size: 1024
Record Count: 18
Last Recno: 0
Maximum Recno: 128
User Block Size: 512
Data Location: 2048
Data Size: 23325
Auto Compact %: 0
Last Modified: 10-Sep-09 09:45:11
Backup Time: 25-Aug-09 14:26:11
PIsecureobject[$Workfile: pisecobj.cxx $ $Revision: 46 $]::
ACL ID: 1 [ 1:A(r,w)|5:A(r)|2:A(r) ]
% unused: 0