Job Management Partner 1/Automatic Job Management System 3 Command Reference 1

[Contents][Glossary][Index][Back][Next]


jpqdbcond

Format

jpqdbcond
     [-h logical-host-name]
     [[-m] |
       [[-x][-k]
         [-d directory-name][-p {output-destination}]]|
     [[{-l|-L} [-a] [[-i {output-destination}]|
       [-t {output-destination,unused-area-size-threshold} [-v]]]]
        |[-t {output-destination,unused-area-size-threshold} [-v]]]]

Description

  1. Compresses unused areas and reorganizes files if the ratio of unused areas is high for the ISAM files that the job execution environment uses.
  2. Outputs the ratio of unused areas, data file fragmentation ratio, and unused size for the ISAM files used in the job execution environment, to the standard output file.
    You can display the ratio of unused areas for the ISAM files even while the job execution environment is using the ISAM files.
  3. Outputs the following information for the ISAM files that the job execution environment uses, to the specified destination as a message:
    - Information about reorganization (start and end date/time, statistics)
    - Unused area size
    - Whether the unused area size has reached the threshold
    You can specify one or more of the following message destinations:
    - Standard error output
    - Windows event log or Syslog
    - JP1 event
  4. Checks whether the size of unused areas for the ISAM files that the job execution environment uses has reached the threshold and sets the result in the return value of the command.
  5. Converts the format of the ISAM file.

Execution privileges

In Windows: Administrators privilege

In UNIX: Superuser privilege

Arguments

-h logical-host-name

Specify the target logical host name.

You can specify a character string of 1 to 255 bytes.

By default, the system assumes the logical host name specified by the JP1_HOSTNAME environment variable. If the JP1_HOSTNAME environment variable is not specified, the system assumes the local host name.

-m

Outputs the number of ISAM lock table entries and the ISAM file format (whether the key reuse functionality is enabled) for the job execution environment database.

You cannot specify this option with any option other than -h.

-x

Completely reorganizes the data and key files for the ISAM files used in the job execution environment.

-k

Converts all ISAM files that constitute the job execution environment to the format enabling the key reuse functionality and completely reorganizes the data and key files.

-d directory-name

Specify the directory name for the work file used for key sorting, if you reorganize the ISAM files that the job execution environment uses.

For an explanation of the system action when you omit this option, see the description of the Jiscond command in the manual Job Management Partner 1/Base User's Guide.

-p {output-destination}

Outputs a message when the command starts and ends the reorganization of the ISAM files that the job execution environment uses.

You must specify this option with the -x option.

The following shows example message output when this option is specified:

Example 1: When reorganization is started
 
KAVU5980-I Database condensing of the job execution environment started. 20XX/10/01 01:05:40

Example 2: When reorganization is ended normally
 
KAVU5981-I Database condensing of the job execution environment ended normally. 20XX/10/01 01:05:40 - 20XX/10/01 01:20:20 (00:14:40)

The start date/time, end date/time, elapsed time, unused area size before reorganization, and unused area size after reorganization are also output.

Example 3: When reorganization is ended abnormally
 
KAVS5982-E Database condensing of the job execution environment ended abnormally. 20XX/10/01 01:05:40 - 20XX/10/01 01:20:20 (00:14:40)

{-l|-L}

Displays the ratio of unused areas for the ISAM files that the job execution environment uses.

You can obtain more detailed information about the ISAM files by specifying this option with the -a option.

-a

Outputs detailed information about the ISAM files that the job execution environment uses.

If this option is specified with the -l or -L option, the command outputs the data file fragmentation ratio and unused area size as well as the ratio of unused areas.

-i {output-destination}

Outputs a message indicating the unused area size for the ISAM files that the job execution environment uses.

The following shows example message output when this option is specified:

Example
 
KAVU5983-I The ISAM unused area size on job execution environment is 99 MB.
 

-t {output-destination},unused-area-size-threshold

Outputs a message if the unused area size for the ISAM files that the job execution environment uses has reached the specified threshold.

You can use this option to schedule the execution of the jpqdbcond command as a JP1/AJS3 job when the system is not very busy (e.g., not executing a large number of jobs), so that the command periodically checks the status of the ISAM files and outputs a warning message as required.

The following shows an example message output when this option is specified:

Example:
 
KAVU5984-W The ISAM unused area size of the job execution environment is 101 MB, which exceeds the 100 MB threshold value.

-v

Sets the return value (process end code) of the command to indicate whether the ratio of unused areas has reached the specified value.

You must specify this option with the -t option.

The following shows the return values of the jpqdbcond command, which depend on whether this option is specified:

 

Notes

Return value

0 Normal end#
1 The ISAM files being used contain unused areas exceeding the specified threshold size.
100 Invalid argument specified
132 The configuration definition information file for submit job execution is not validly coded.
135 Insufficient system resource
137 No database storage path
138 You do not have the privilege required to access the database.
140 The user is not logged on as a member of the Administrators group (in Windows systems) or does not have superuser privileges (in UNIX systems).
141 Invalid environment setting or logical host name
145 Insufficient memory
146 Insufficient disk space
147 An error due to an internal cause occurred.
148 An error occurred in ISAM processing for database reorganization.
149 Processing cannot be performed because the database size exceeds 2 GB.
226 Invalid execution environment

#
When the -t and -v options are specified simultaneously, indicates that the ISAM files used by the job execution environment have not reached the unused area size threshold.

Additional informations

[Contents][Back][Next]


[Trademarks]

Copyright (C) 2009, 2010, Hitachi, Ltd.
Copyright (C) 2009, 2010, Hitachi Solutions, Ltd.