Previous Topic: Denying Resource Access with ACTION(DENY)Next Topic: Restricting Types of Access


Time and Duration Restrictions

By default, an authorized resource can be used at any time. The TIME, TIMEREC, CALENDAR, DAYS, FOR, and UNTIL keywords can be used to place time and duration restrictions on this authorization.

For example, the following allows USER01 use of terminal GRAF04DC until midnight, December 31, 2002.

TSS ADDTO(USER01) TERM(GRAF04DC) UNTIL(12/31/02)

Continuing our example, the following allows USER01 use of the terminal until the indicated date, but now only between the hours of 9 A.M. and 5 P.M.

TSS PERMIT(USER01) TERM(GRAF04DC) UNTIL(12/31/02) TIME(09,17)

Note: The date field in the UNTIL keyword must follow the same mask as set by the DATE control option.

TZONE can be used as an automatic correction factor when there is a difference between the user’s time zone and the CPU’s time zone.

For example, if USER01, using a California terminal communicating with a New York CPU, needs to be restricted to using this local terminal during normal business hours, the TZONE keyword can simplify matters:

TSS ADDTO(USER01)  TZONE(-3)
TSS PERMIT(USER01)  TERMINAL(GRAF04DC) TIMES(08,17)

These two entries restrict USER01 to using local terminal GRAF04DC between 8 A.M. and 5 P.M. Pacific Coast Time.

Note: The TZONE keyword can be used only with a CREATE or ADDTO function (but not PERMIT).

The TIMEREC keyword can be used instead of the TIME keyword in order to specify access to a resource in multiple time ranges defined in 15-minute intervals within a 24-hour day.

The CALENDAR keyword can replace the DAYS keyword to control access to a resource by specifying which days of the week within a particular year access is allowed.