Hitachi

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


ajsstart

Organization of this page

Format

ajsstart
     [-c|-o|-t]
     [-F service-name]
     [-s {none|EXEC}]
     [-w]
     [-R]
     [-D]

Description

Starts the scheduler service for JP1/AJS3 and executes any jobnet registered for execution.

To execute this command, a user must have superuser privileges (in UNIX systems), or be logged on as a member of the Administrators group (in Windows systems).

Execution privileges

In Windows: Administrators privilege

In UNIX: Superuser privilege

Arguments

-c

Forcibly cancels the execution registration of all jobnets and starts ("cold-starts") the scheduler service.

The following situations require a cold start:

  • When the database table structure in the JP1/AJS3 scheduler has been modified

  • When you cannot start a scheduler service

When you cold-start a scheduler service, you must re-register the jobnet for execution after the scheduler service is started.

Cold-starting a scheduler service deletes all execution results for all the previous generations for all jobnets. We recommend that you store any necessary log information before attempting to perform cold start.

You cannot specify this option together with the -R or -D option.

-o

Does not execute a jobnet which is scheduled to execute on the day when you start the scheduler service, if its scheduled time for starting execution is prior to the time when you start the scheduler service.

If you omit this option, the system automatically executes a jobnet when you start the scheduler service, even if its scheduled time for starting execution is prior to the time when you start the scheduler service.

If you specify this option together with the -R option, this option is disabled.

-t

Does not execute a jobnet scheduled for planned execution or fixed execution for the day.

If you specify this option together with the -R option, this option is disabled.

-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 scheduler service name.

-s{none|EXEC}

Specify whether you want to suppress the execution of a jobnet or job, or cancel suppression.

  • none

    Cancels the suppression of execution for a jobnet or job.

  • EXEC

    Suppresses the execution of a jobnet or job. Once the system has completed the execution of the jobnet or job currently being executed, it will not start any subsequent jobnet or job.

-w

Terminates the command once the scheduler service is started.

-R

Continues the execution of any jobnet or job which was running when the scheduler service was previously stopped. (A hot start is performed.)

Jobnet

Continues execution with the status when the scheduler service was stopped.

This option also executes any jobnet that has passed the scheduled start time after the scheduler service is started.

Job

Obtains the job status when the scheduler service was stopped, and continues execution with that status.

You cannot specify this option together with the -c or -D option.

-D

Starts the scheduler service in disaster recovery mode. For details on disaster recovery mode, see 7.2.1 Temporarily changing the start mode of JP1/AJS3 in the Job Management Partner 1/Automatic Job Management System 3 Administration Guide.

You cannot specify this option with the -c, -R, or -s option.

You cannot use this option if the JP1/AJS3 database uses the compatible ISAM configuration.

Notes

Return values

0

Normal end

Multiple of 4 within the range from 4 to 124

Abnormal end

Example

The following command cold-starts a scheduler service:

ajsstart -c