Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 System Design (Work Tasks) Guide


3.5.5 Shifting the scheduled execution date forward or back based on a calculated schedule (Schedule by days from start)

This subsection describes the settings required to shift the execution date of work tasks. The date is shifted by days, to a date before or after the scheduled execution date, which is determined by the calendar definition and schedule rules.

You define these settings using the schedule by days from start function. For details about the schedule by days from start function, see 3.3.2 Defining a schedule in the manual JP1/Automatic Job Management System 3 Overview.

The following describes how to use the schedule by days from start function, with an example jobnet that performs the salary calculation processing before the salary payment day.

Organization of this subsection

(1) Performing salary calculation processing two open days before the salary payment day

The following describes an example of a jobnet that performs the salary calculation processing two open days before the salary payment day (the 15th of every month). If the 15th is a closed day, the salary payment day must be shifted to the nearest open day before the 15th.

The following figure shows an example of performing the salary calculation processing two open days before the salary payment day.

Figure 3‒10: Example of executing the salary calculation processing two open days before the salary payment day

[Figure]

Example 1:

If the 15th is Friday (open day), the jobnet for salary calculation processing is executed on the 13th (two open days before the 15th).

Example 2:

If the 15th is Saturday (closed day), the salary payment day is shifted to the 14th (nearest open day before the 15th). Therefore, the jobnet for salary calculation processing is executed on the 12th (two open days before the 14th).

Example 3:

If the 15th is Monday (open day) and both the 13th and 14th are closed days, the jobnet for salary calculation processing is executed on the 11th (two open days before the 15th).

Example 4:

If the 15th is Sunday (closed day) and the 14th is also a closed day, the salary payment day is shifted to the 13th, which is the nearest open day before the 15th. Therefore, the jobnet for salary calculation processing is executed on the 11th (two open days before the 13th).

To perform the operations above, use the schedule by days from start function, based on open days.

When you use this function based on open days, the scheduled execution day is shifted back by n open days from the base date determined by the calendar definition and substitute schedule for closed days. Therefore, you can set the jobnet for salary calculation processing to be executed on a date two open days before the salary payment day.

To set the schedule shown in the figure by using the schedule by days from start function, define the schedule rule as follows:

Definition

Execution start date: 15th (absolute day)

Processing cycle: 1 month

Substitute schedule in case of a closed day job: Execute on previous open day

Schedule by days from start: Execute 2 open days before start date

When you register this definition for execution, first the start date (salary payment date) is calculated based on the settings you specified for the execution start date, the processing cycle, and the substitute schedule in case it falls on a closed day. Accordingly, the actual scheduled execution date is set to a date two open days before the start date.

(2) Performing the salary calculation processing two days before the salary payment day

The following describes an example of a jobnet that performs the salary calculation processing two days before the salary payment day (the 15th of every month). If the 15th is a closed day, the salary payment day must be shifted to the nearest open day before the 15th. The salary calculation processing can be performed on closed days and open days.

The following figure shows an example of performing the salary calculation processing two days before the salary payment day.

Figure 3‒11: Example of executing the salary calculation processing two days before the salary payment day

[Figure]

Example 1:

If the 15th is Friday (open day), the jobnet for salary calculation processing is executed on the 13th (two days before the 15th).

Example 2:

If the 15th is Saturday (closed day), the salary payment day is shifted to the 14th (nearest open day before the 15th). Therefore, the jobnet for salary calculation processing is executed on the 12th (two days before the 14th).

Example 3:

If the 15th is Monday (open day) and both the 13th and 14th are closed days, the jobnet for salary calculation processing is executed on the 13th (two days before the 15th).

Example 4:

If both the 14th and 15th are closed days, the salary payment day is shifted to the 13th (nearest open day before the 15th). Therefore, the jobnet for salary calculation processing is executed on the 11th (two days before the 13th).

To perform the operations above, use the schedule by days from start function, based on any day.

When you use this function based on any day, the scheduled execution day is shifted back by n days from the base date determined by the calendar definition and substitute schedule for closed days. Therefore, you can set the jobnet for salary calculation processing to be executed on a date two days before the salary payment day.

To set the schedule shown in the figure by using the schedule by days from start function, define the schedule rule as follows:

Definition

Execution start date: 15th (absolute day)

Processing cycle: 1 month

Substitute schedule in case of a closed day job: Execute on previous open day

Schedule by days from start: Execute 2 days before start date

When you register this definition for execution, first the start date (salary payment date) is calculated based on the settings you specified for the execution start date, the processing cycle, and the substitute schedule in case it falls on a closed day. Accordingly, the actual scheduled execution date is set to a date two days before the start date.