Jisinfo
- Organization of this page
Function
The Jisinfo command displays information about the files that constitute an ISAM file and information about keys.
This command displays the following information contained in the key definition file:
-
Information about the data file:
The record format, record length, and flags
-
Information about the key file:
The page length, key item names, number of key items, key file name, flags, number of key elements, key positions, key lengths, and key attributes
Format
Jisinfo [-u] [-e] file-name
(The -e option is only available in UNIX.)
Required execution permission
In Windows: Administrators (If User Account Control (UAC) for Windows is enabled, you must execute the command from the administrator console.)
In UNIX: Superuser or JP1/Base administrator permission
Command directory
- In Windows:
-
installation-folder\bin\
- In UNIX:
-
/opt/jp1base/bin/
Arguments
-u
Deleting or updating records increases the unused area for the data file and key file. If you specify this option, the command displays the percentage of the unused area size. If the percentage of the unused area size is high, you can use the file compression utility command to eliminate the unused area.
-e
This option is available for UNIX only.
Use this option to check the setting for ISAM file size capping. If ISAM file size capping is enabled, Reuse appears in the Key File Reuse field. If size capping is enabled in Windows, the function's status is always displayed.
file-name
Specify the name of the file for which you want to display the key definition information. If you do not specify the full path name of a file, the command assumes that the file is located in the current directory at the current drive. When you specify more than one file name, use at least one space to separate each file name. You can also use the wildcard character (*) to specify files.
In Windows, if you want to specify a file name that includes spaces, enclose the file name in double quotation marks (").
- Example:
-
The following shows examples in Windows.
-
Specify all the files in the c:\data directory.
Jisinfo c:\data\*
-
Specify the file names beginning with SAMPLE in the c:\data directory.
Jisinfo c:\data\SAMPLE*
-
Notes
-
The command immediately stops if an I/O error occurs or a specified file does not exist even when the command has processed some files.
-
If you want to redirect the check result to a text file, specify the destination file name after >. The following shows an example.
Example:
Jisinfo sample > info.txt
-
The command takes some time to display the result if you specify the -u option.
-
If you execute the command with the -u option specified while another process is accessing the specified ISAM file, a file access error occurs.
Return values
0 |
Normal end |
1 |
Abnormal end |