You have a great deal of flexibility with the INSERT subcommand when you create shift records. For example, you can specify DAYS(MO,TU,WE,TH,FR) to allow access on Monday through Friday, but specify NDAYS(12/25/96) to prevent access on holidays, such as Christmas. Even if Christmas falls on a day specified in DAYS, the date specified in NDAYS prevents access.
You can specify multiple time entries with the TIME operand. For example:
TIME(0900‑1200,1300‑1700).
These values allow access from 9:00 a.m. through 11:59 a.m. and again from 1:00 p.m. through 4:59 p.m. Because you did not specify 1200‑1300, access from 12:00 p.m. through 12:59 p.m. is prevented.
The NTIME operand prevents access during a time specified in the TIME operand. For example, if you entered the following, you could specify NTIME(1200‑1300) to prevent access during the noon period:
TIME(0900‑1700)
The INCLUDE parameter specifies a special shift requirement. For example, you can define a normal shift through the INSERT subcommand as follows:
INSERT NORMAL DAYS(MO,TU,WE,TH,FR),
NDAYS(01/01/99,07/04/99,12/25/99),
TIME(0900‑1700),NTIME(1200‑1300)
This SHIFT record allows access during weekdays from 9:00 a.m. through 4:59 p.m., excludes access during the lunch hour (12:00 p.m. through 12:59 p.m.), and prevents access on three holidays. You can specify a special shift to allow programmers access on Saturday mornings and during the regular work week this way:
INSERT SPECL INCLUDE(NORMAL),DAYS(SA),
TIME(0900‑1200)
In the above example, the SHIFT (SPECL) includes all specifications of the shift specified as NORMAL, and Saturdays from 9:00 a.m. through 11:59 a.m. The INCLUDE operand prevents access on all holidays for a year. For example, you can insert a record citing all the holidays for the upcoming year:
INSERT HOLIDAYS NDAYS(01/01/99,05/25/99,07/04/99,
09/07/99,11/26/99,12/25/99)
You can include the HOLIDAYS record in other records using the INCLUDE operand of INSERT or you can insert a record that prevents access on all Christmas dates for the next five years:
INSERT XMAS NDAYS(12/25/98,12/25/99, 12/25/00,
12/25/01,12/25/02)
You can include the XMAS record in other records with the INCLUDE operand of INSERT. As you can see, the INCLUDE feature is very powerful and saves you from changing all shift records when you just need to maintain a few days.
|
Copyright © 2009 CA Technologies.
All rights reserved.
|
|