Job Management Partner 1/Base User's Guide
Function
The Jischk command checks the logical structure of ISAM files. The command displays messages if the files have errors. Based on the specified level, the command checks the contents and relationship of the constituent files in the ISAM files.
In UNIX, if the key file is invalid, this command can output key definition parameters indicating key information. By using these parameters, you can use the Jiskeymnt command to reorganize the key file.
Format
- In Windows:
- Jischk [-l level] file-names ...
- In UNIX:
- Jischk [-l level][-p] file-names ...
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
Command directory
- In Windows:
- installation-folder\bin\
- In UNIX:
- /opt/jp1base/bin/
Arguments
-l level
Specify the level for checking the specified files. Specifying a larger value in this option performs a more detailed (and longer) check.
- 1
- In Windows, the command checks only the key file.
- In UNIX, the command checks the key definition file and the key file.
- 2
- In Windows, the command checks the key file, as well as the relationship between the key file and the data file.
- In UNIX, the command checks the key definition file and the key file, as well as the relationship between the key file and data file.
- 3
- The command checks the following items:
- Key definition file (in UNIX only)
- Key file
- Relationship between the key file and the data file
- Structure of the data file
- Number of records
If you omit the -l option, 1 is assumed.
-p
Specify this option to output the key definition parameters for the Jiskeymnt command (adding, deleting or reorganizing keys) if the key file is invalid. This option is available for UNIX only.
file-name
Specify one or more files you want to check. 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.
Jischk -l3 c:\data\*
- Specify the file names beginning with SAMPLE in the c:\data directory.
Jischk -l3 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.
- In Windows, if you want to redirect the check result to a text file, specify the destination file name after >. The following shows an example.
- Example:
Jischk -l3 sample > chk.txt
Return values
0 Normal end 1 Abnormal end 2 Abnormal end (returned if the file contains an inconsistency)
All Rights Reserved. Copyright (C) 2009, Hitachi, Ltd.