The EXTRACT macro causes the system to provide information from specified fields of the task control block or a subsidiary control block for either the active task or one of its subtasks. The system places the information in an area that the program provides. For a description of this area see “Providing an EXTRACT Answer Area” in z/OS MVS Programming: Authorized Assembler Services Guide. When EXTRACT is issued, its parameter list can reside in 24 or 31-bit addressable storage.
To obtain the address of a TIOT entry, you can use either the GETDSAB macro or the EXTRACT macro.
The requirements for the caller are:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Problem state, and user key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN=HASN=SASN |
AMODE: | 24- or 31-bit |
ASC mode: | Primary |
Interrupt status: | Enabled for I/O and external interrupts |
Locks: | No locks held |
Control parameters: | Must be in the primary address space |
None.
None.
None.
The standard form of the EXTRACT macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede EXTRACT. |
EXTRACT | |
␢ | One or more blanks must follow EXTRACT. |
answer addr | answer addr: A-type address, or register (2) - (12). |
,‘S’ | Default: 'S' |
,tcb addr | tcb addr: A-type address, or register (2) - (12). |
,FIELDS=(tcb info) | tcb info: Any combination of
the following, separated by commas:
|
The parameters are explained as follows:
The EXTRACT macro might abnormally terminate with one of the following abend codes: X'128', X'228', and X'328'. See z/OS MVS System Codes for explanations and programmer responses.
None.
EXTRACT WHERE,ADDRESS,FIELDS=(ALL,TSO,COMM,PSB,TJID)
EXTRACT WHERE,'S',FIELDS=(ALL,TSO,COMM,PSB,TJID)
EXTRACT ANSWER,TCBADDR,FIELDS=(COMM)