ACCESSCODE Task Attribute

CANDE recognizes the ACCESSCODE task attribute. (Refer to the Task Attributes Programming Reference Manual for additional information about task attributes.) Accesscodes are required only for tasks accessing files that are protected by a guard file that uses accesscodes to control access rights.

For example, assume a session is running under usercode UA with accesscode/accesscode password AA/PA. The following is entered:

RUN (UB)P ON HISPACK; ACCESS AB/PB

AB is the accesscode for the task (UB)OBJECT/P. At task start-up time, AB/PB must be a valid accesscode/accesscode password for user UA; if not, the task is not initiated. Access to the program file (UB)OBJECT/P is determined by the security of the program code file; if the security is GUARDED or CONTROLLED, access is determined by the usercode UA and the accesscode AA of the session. Supplying an ACCESSCODE task attribute on a task does not change the accesscode of the session. The ACCESSCODE task attribute cannot be provided as a task attribute to a program being compiled from CANDE. For example, COMPILE; COMPILER ACCESS=A/B is valid; however, COMPILE; ACCESS=A/B is not valid.