Access to Ancestral Processes in CANDE

If you initiate a task from a CANDE session, and that task accesses its own EXCEPTIONTASK task attribute, the system interprets EXCEPTIONTASK as a reference to the CANDE MCS. The task can use the EXCEPTIONTASK task attribute to query the values of the task attributes of the CANDE MCS. However, if the task attempts to modify the task attributes of the CANDE MCS, the task is terminated with a task attribute error. This error occurs because CANDE runs with the private process option of the OPTION task attribute set to TRUE.

Session attributes can be interrogated using the MYJOB task variable. Attributes that can normally be set for a running job can also be set for a session using the MYJOB task variable. However, the following attributes cannot be set: ACCESSCODE, CONVENTION, FAMILY, FILECARDS, LANGUAGE, LIBRARY, PRINTDEFAULTS, PRIORITY, STATION, and USERCODE.

For the attributes EXCEPTIONEVENT and TASKFILE, MYJOB is equivalent to MYSELF.

The following ALGOL example assigns a value of SUPPRESSED to the JOBSUMMARY task attribute of the session. If this program is initiated by a CANDE RUN command, the program prevents a job summary from being printed when the session ends.

BEGIN
  MYJOB.JOBSUMMARY:= VALUE(SUPPRESSED);
END.

The MCSNAME task attribute of tasks initiated from CANDE sessions typically returns a value of SYSTEM/CANDE, which might or might not be preceded by an asterisk (*). Note that the MCSNAME value can be different if CANDE was installed at your site under a different name.