Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Command Reference


ajsschedule

Organization of this page

Format

ajsschedule
     [-F service-name]
     -b[[year/]month/]day
     -e[[year/]month/]day
     root-jobnet-name

Description

Creates a jobnet execution schedule for a certain period. The result of the creation is output to the standard output file according to the format of the schedule information parameter. For details about the schedule information parameter, see 5.4 Creating a schedule information file.

Execution privileges

You must have any of the following JP1 privileges:

Arguments

-F service-name

Specify the name of the target scheduler service.

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

-b [[year/]month/]day

Specify the start date of the period applied to a schedule to be created.

The start time is the base time.

  • year

    You can specify a value between 1994 and 2036 for the year.

  • month

    You can specify a value between 1 (or 01) and 12.

  • day

    You can specify a value between 1 (or 01) and 31.

If you omit the year or the year/month in this option, the following values are assumed.

year: Year when the command was executed

year/month: Year and month when the command was executed

-e [[year/]month/]day

Specify the end date of the period applied to a schedule to be created. The end date must be the same as or follow the start date.

The end time is the base time plus 23 hours: 59 minutes: 59 seconds.

  • year

    You can specify a value between 1994 and 2036 for the year.

  • month

    You can specify a value between 1 (or 01) and 12.

  • day

    You can specify a value between 1 (or 01) and 31.

If you omit the year or the year/month in this option, the following values are assumed.

year: Year when the command was executed

year/month: The year and month in which you executed the command

root-jobnet-name

Specify the name of a target root jobnet by using a maximum of 930 bytes.

Note that you cannot use wildcard characters to create an execution schedule for multiple root jobnets. If you specify a character string that includes a wildcard character and the specification can represent multiple root jobnets, an execution schedule is created for only one root jobnet.

Also note that you cannot specify a logical host name or execution ID for root-jobnet-name.

Notes

Return values

0

Normal end

Multiple of 4 within the range from 4 to 124

Abnormal end

Example

The following command creates the schedule of jobnet net1 for June 20XX.

ajsschedule -b 20XX/6/1 -e 20XX/6/30 /net1

Output example

PN=net1:20XX06050000:h::::::;
{
 PJ=job:y:y:h;
}
PN=net1:20XX06120000:h::::::;
{
 PJ=job:y:y:h;
}
PN=net1:20XX06190000:h::::::;
{
 PJ=job:y:y:n;
}
PN=net1:20XX06260000:h::::::;
{
 PJ=job:y:y:n;
}