Hitachi

JP1 Version 12 JP1/Base User's Guide


Jiscond

Organization of this page

Function

The Jiscond command eliminates unnecessary area from the specified data files to compress them. This command also reorganizes the key file.

Updating records in data files or deleting records from data files increases the area size of the data files. This command eliminates unnecessary data from the data files to reduce the area for the data files. Also, this command extracts keys to reorganize the key file, based on the key information in the key definition file. If no keys are defined in the key file, this command does not reorganize the key file.

Format

In Windows:

Jiscond [-r] [-d dir work-folder-name] [-k | -q] file-name

In UNIX:

Jiscond [-T dir work-directory-name] [-k | -q] file-name

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

-r

Specify this option to display the compression rate of the data file and key file. When you specify this option, the file compression utility command outputs the execution result including the ratio (percentage) of the compressed file size to the uncompressed file size.

-d dir work-folder-name

The work files is used to sort key entries during file compression. This means that you must specify the directory for the work files. If you omit this option, the directory specified in the TEMP environment variable, the tmp directory, or the current directory is used. This option can only be specified in Windows.

-T dir work-directory-name

The work files is used to sort key entries during file compression. This means that you must specify the directory for the work files. If you omit this option, the /tmp or /usr/tmp directory is used. This option is available for UNIX only.

-k

Specify the -k option to reorganize the ISAM file while preventing it from becoming too large. If JP1 is operating for a long time, the size of the key file, which provides indexes for the ISAM database, increases without limit. You must reorganize the ISAM file periodically. This argument prevents the key file from becoming too large.

-q

Specify the -k option to reorganize the ISAM file but cancel the setting for preventing it from becoming too large. If you want to use a previous version of JP1, you must disable any functionality not supported by that version. This argument enables previous versions of JP1 to access the ISAM file.

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. In Windows, if you want to specify more than one file, use at least one space to separate each file name. If you want to specify a file name that includes spaces, enclose the file name in double quotation marks ("). You can also use the wildcard character (*) to specify files.

Example:

The following shows examples in Windows.

  • Specify all the files in the c:\data directory.

Jiscond c:\data\*
  • Specify the file names beginning with SAMPLE in the c:\data directory.

Jiscond c:\data\SAMPLE*

Notes

Return values

0

Normal end

1

Abnormal end