The TTOKEN is the 16-byte identifier of a task. Unlike a TCB address, each TTOKEN is unique within the IPL; the system does not reassign this same identifier to any other TCB.
The requirements for the caller are:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Problem state and any PSW key. |
Dispatchable unit mode: | Task |
Cross memory mode: | Any |
AMODE: | 31-bit |
ASC mode: | Primary or AR |
Interrupt Status: | Enabled or disabled for I/O and external interrupts |
Locks: | The caller may hold locks, but is not required to hold any. |
Control parameters: | Can reside in the primary address space or in an address/data space that is addressable through a public entry on the caller's dispatchable unit access list (DU-AL). |
None.
None.
Before issuing the TCBTOKEN macro, the caller does not have to place any information into any register unless using it in register notation for a particular parameter, or using it as a base register.
Some callers depend on register contents remaining the same before and after issuing a service. If the system changes the contents of registers on which the caller depends, the caller must save them before issuing the service, and restore them after the system returns control.
None.
The standard form of the TCBTOKEN macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede TCBTOKEN. |
TCBTOKEN | |
␢ | One or more blanks must follow TCBTOKEN. |
TYPE=CURRENT |
|
,TTOKEN=ttoken addr | ttoken addr: RX-type address. |
,RELATED=value | value: Any valid macro parameter specification. |
The parameters are explained as follows:
None.
When TCBTOKEN returns control, register 15 contains one of the following return codes:
Hexadecimal Return Code | Meaning and Action |
---|---|
00 | Meaning: TCBTOKEN services completed successfully. Action: None. |
10 | Meaning: The TCB could not be referenced. Action: Ensure that the input TCB address is valid. |
14 | Meaning: The TCB did not pass the acronym
check. Action: Ensure that the input TCB address is valid. |
18 | Meaning: The TCB has terminated. Action: None required. |
20 | Meaning: An unexpected error occurred. Action: Reissue TCBTOKEN. |
24 | Meaning: The contents of access register
1, used to address the parameter list, were not valid. Action: Change your program to run in primary mode or set access register 1 to zero. |
28 | Meaning: The parameter list is not valid. Action: Ensure that the parameter list address is valid and addressable in the calling program's key. |
30 | Meaning: The task is scheduled for termination,
but has not yet terminated. Action: None required. |
34 | Meaning: The caller is not running in task
mode. Action: Change your program to run in task mode. |
TCBTOKEN TYPE=CURRENT,TTOKEN=CURRENT_TTOKEN