This control statement is used to set a schedule pattern.
Synopsis
CAL ---------- (1) execpatname Schedule pattern name ---------- (2) (*) (Note) monthset Month setting ---------- (3) (**) dayset Day setting ---------- (4) (**) weekset Day of the week setting ---------- (5) (**) daycancel Day setting cancellation ---------- (6) (**) monthlyday Date setting for every month ---------- (7) (**) monthlyweek Day of the week setting for every month ---------- (8) (**) bnsmode Criteria of business day basis ---------- (9) (**) bnsbase Month's start date of business day basis ---------- (10)(**) bnsday Business days ---------- (11)(**) bnslimit Set only business days of the month as startup days ---------- (12)(**) ;
The execpatname operand should be specified immediately after the CAL keyword.
This must be specified.
Select one of the following; a. (Yearly standards) /b. (Monthly standards) /c. (Business day standards).
a. monthset, dayset, weekset, daycancel (monthset is mandatory. Either or both dayset and weekset can be selected. daycancel can only be selected if dayset is selected.)
b. A combination of monthlyday and monthlyweek (either or both)
c. bnsmode, bnsbase, bnsday, bnslimit (The bnsmode operand and the bnsbase operand must be specified if this operand group is specified.)
About This Control Statement
(1) CAL
This is the keyword that indicates the beginning of a schedule pattern control statement.
(2) execpatname Schedule pattern name
Specify a schedule pattern name within 24 bytes. The name should not include a blank space or a user-defined character. Note that, if a schedule pattern name that has already been setup is specified, the previous setting information is cleared.
(3) monthset Month setting
When defining the schedule pattern information using the yearly standards, specify the month(s) using numerals. This must be specified. To specify more than one month, the format should look similar to "3,5,10,....." To define the same schedule pattern for every month, specify "EVERY".
(4) dayset Day setting
When defining the schedule pattern information using the yearly standards, specify the day(s) using numerals. To specify more than one day, the formal should look similar to "1,2,15,21,...."
(5) weekset Day of the week setting
When defining the schedule pattern information using the yearly standards, this is used to specify the schedule pattern by day of the week. A day of the week should be specified by using the first three letters of the day. To specify more than one day of the week, the format should look similar to "SUN,MON,TUE,WED,THU,FRI,SAT".
(6) daycancel Day setting cancellation
When defining the schedule pattern information using the yearly standards, this is used to cancel schedule pattern setting for a specific day. Specify the month and the date on which you want to cancel the schedule pattern, using the format "MMDD" with two numerals respectively.
Example of day setting cancellation
The following is an example of how to specify the day setting cancellation.
To cancel the schedule pattern set for January 1:
daycancel 0101
To cancel schedule patterns set for January 1 and 10 and February 10:
daycancel 0101,0110,0210
(7) monthlyday Date setting for every month
When defining the schedule pattern information using the monthly standards, specify the date(s) in which the job net is executed for every month. To set DD (day) of every month as the startup day, specify "DD". More than one startup day can be set. To execute the job net at the end of every month, enter "LAST".
(8) monthlyweek Day of the week setting for every month
When defining the schedule pattern information using the monthly standards, specify the day(s) of the week on a weekly basis in which the job net is executed for every month. It is only one week that can be specified with one operand. To set more than one week, use this operand repeatedly. To specify this operand, enter the ordinal number of the week (where 1 - 5 represents the first through the fifth week, 0 indicates that every week is specified, and 6 represents the last week of the month) with a number between 0 and 6 that is followed by the first three letters of the day of the week. The format should look similar to the following: 5,SUN,MON,TUE,WED,THU,FRI,SAT.
(9) bnsmode Criteria of business day basis
When defining the schedule pattern information using business day standards, specify either "Month's start date" or "Month's end date" as the selection criteria of business days.
Counts the business days from the Month's start date.
Counts the business days back from the Month's end date.
(10) bnsbase Month's start date of business day basis
When defining the schedule pattern information using business day standards, specify "Month's start date". "0" is invalid.
Indicates 1st to 28th of the month.
Indicates the end of the month.
(11) bnsday Business days
When defining the schedule pattern information using business day standards, specify business day. To specify more than one business day, use a comma (,) as a separator. "0" is invalid.
The business days that are specified by counting from the 1st business day (the first business day of the month) using a range from 1 to 31. This parameter cannot be specified if "END" is set in the bnsmode operand.
The business days that are specified by calculating back from the -1st business day (the last business day of the month) using a range from -1 to -31. This parameter cannot be specified if "START" is set in the bnsmode operand.
(12) bnslimit Set only business days of the month as startup days
When defining the schedule pattern information using business day standards, specify whether "Set only business days of the month as startup days" is set to ON or OFF. If the bnsmode operand is specified, the default is "ON".
"Set only business days of the month as startup days" is selected.
"Set only business days of the month as startup days" is not selected.
Example of schedule pattern control statement
The following is an example of setting the schedule pattern with the dates below as startup days.
January 1
February 10
CAL execpatname Sample monthset 1 dayset 1 monthset 2 dayset 10 ;
Cautions
The "Day setting" and the "Day of the week setting" should be placed after the "Month setting."
If more than one pattern is specified for "Day setting" and "Day of the week setting", be sure to include "Month setting" for each of schedule patterns to be specified