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

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


ajsdbcond

Format

ajsdbcond
     [-F service-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 scheduler service uses.
  2. Outputs the ratio of unused areas, data file fragmentation ratio, and unused area size for the ISAM files used by the scheduler service, to the standard output file.
    You can display the ratio of unused areas for the ISAM files even while the scheduler service is using the ISAM files.
  3. Outputs the following information for the ISAM files that the scheduler service 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 scheduler service 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

-F service-name

Specify the name of the target scheduler service.

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

If you omit this option, the system assumes the default service name.

-m

Outputs the semaphore number and the ISAM file format (whether the the key reuse functionality is enabled or disabled) of the specified scheduler database.

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

-x

Reorganizes the ISAM files that the scheduler service uses.

-k

Converts all ISAM files that constitute the specified scheduler service to the format enabling the key reuse functionality, and completely reorganizes the data and key files.

-d directory-name

Specify the directory for the work file used for key sorting, if you reorganize the ISAM files that the scheduler service uses.

For an explanation of the system action when you omit this option, see the description of the Jiscond command in the 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 scheduler service 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
 
KAVS1500-I Database condensing of the scheduler service (AJSROOT1) started. 20XX/10/01 01:05:40

Example 2: When reorganization is ended normally
 
KAVS1501-I Database condensing of the scheduler service (AJSROOT1) 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
 
KAVS1502-I Database condensing of the scheduler service (AJSROOT1) 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 scheduler service 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 scheduler service 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 scheduler service uses.

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

Example:
 
KAVS1503-I The ISAM unused area size of the scheduler service (AJSROOT1) is 99 MB.

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

Outputs a message if the unused area size for the ISAM files that the scheduler service uses has reached the specified threshold.

You can use this option to schedule the execution of the ajsdbcond command as a JP1/AJS3 job when the scheduler service is not very busy, so that the command periodically checks the status of the ISAM files and outputs a warning message as required.

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

Example:
 
KAVS1504-W The ISAM unused area size for scheduler service (AJSROOT1) 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.

Notes

Return values

0 Normal end#1
1 The ISAM files being used contain unused areas exceeding the specified threshold size.#2
Multiple of 4 within the range from 4 to 124 Abnormal end

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

#2
This code is returned only when the -t and -v options are specified simultaneously.

Additional informations

Example 1

The following command reorganizes the ISAM files the AJSROOT1 scheduler service uses, when the scheduler service is stopped:

 
ajsdbcond -x -F AJSROOT1

Example 2

The following command outputs the status of the ISAM files the AJSROOT1 scheduler service uses (ratio of unused areas, unused area size, and data file fragmentation ratio):

 
ajsdbcond -l -a -F AJSROOT1

Example 3

The following command outputs information about the ISAM files the scheduler service uses to the standard output, and outputs messages to the standard error output and Windows event log or Syslog if the unused area size has reached the threshold (10 MB):

 
ajsdbcond -L -a -t se,10 -F AJSROOT1

[Contents][Back][Next]


[Trademarks]

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