If you initiate a task through the MARC RUN command and that task accesses its own EXCEPTIONTASK task attribute, the system interprets EXCEPTIONTASK as a reference to the MARC library, *SYSTEM/MARC/COMMANDER. The task can use the EXCEPTIONTASK task attribute to query the values of the task attributes of the MARC MCS. However, if the task attempts to modify the task attributes of the MARC MCS, the task is terminated with a task attribute error. This error occurs because MARC runs with the private process option of the OPTION task attribute set to TRUE.
For tasks initiated through a MARC RUN command, the MYJOB task variable and the PARTNER task attribute act as synonyms for the MYSELF task variable. When such a task uses MYJOB or PARTNER to access any task attributes, the task attributes accessed are those of the task itself. However, if the task changes the values of the job summary-related task attributes, the changes affect the job summary of the MARC session. The job summary-related task attributes are JOBSUMMARY, JOBSUMMARYTITLE, and NOJOBSUMMARYIO.
For WFL statements submitted through a MARC WFL command, the MYJOB task variable refers to the WFL compiler process. The NAME of the WFL compiler process in this case is MARC WFL, prefixed by the usercode of the session. The MYSELF task variable refers to the task that is executing the compiled WFL statements. The NAME of this task is WFLCODE, prefixed by the usercode of the session. MYSELF(JOBNUMBER) returns the MARC session number, but MYJOB(MIXNUMBER) returns the mix number of the WFL compiler process.
When statements submitted through the WFL command use the MYJOB construct to alter job summary-related task attributes, these changes affect the job summary of the MARC session. However, if the MYSELF variable is used to access these task attributes, there is no effect on the job summary of the MARC session.
| Note: | When you use the JOBSUMMARY command to display the current JOBSUMMARY value for the session, the output does not reflect any JOBSUMMARY assignments made by tasks of the session. Nevertheless, such assignments made by tasks do affect the job summary of the session unless overridden by a later JOBSUMMARY command. |
The MCSNAME task attribute of tasks initiated from MARC sessions typically returns a value of SYSTEM/COMS, which might or might not be preceded by an asterisk (*).

