The ETDES macro is used to destroy a previously-created entry table.
ETDEF, ETCRE, ETCON, and ETDIS
These are the requirements for the caller:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Supervisor state or PKM 0-7 |
Dispatchable unit mode: | Task or SRB |
Cross memory mode: | PASN=HASN=SASN or 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 primary address space |
None.
An entry table can be destroyed only by the address space that owns it.
After the caller issues the macro, the macro might use some registers as work registers or might change the contents of some registers. When the macro returns control to the caller, the contents of these registers are not the same as they were before the macro was issued. Therefore, if the caller depends on these registers containing the same value before and after issuing the macro, the caller must save these registers before issuing the macro and restore them after the system returns control.
None.
The ETDES macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede ETDES. |
ETDES | |
␢ | One or more blanks must follow ETDES. |
TOKEN=addr | addr: RX-type address or register (0) - (12). |
,PURGE=NO | Default: PURGE=NO |
,PURGE=YES | |
,RELATED=value | value: Any valid macro keyword specification. |
The parameters are explained as follows:
At the time ETDES is issued, the entry table must not be connected to any linkage tables unless PURGE=YES is coded. If any outstanding connections still exist and PURGE=YES is not coded, the entry table is not destroyed and the caller is abnormally terminated.
052
053
See z/OS MVS System Codes for an explanation and programmer responses for these codes.
When ETDES macro returns control to your program, GPR 15 contains a return code.
Hexadecimal Return Code | Meaning and Action |
---|---|
00 | Meaning: The specified entry table was
destroyed. There were no connections to linkage indexes. Action: None required. |
04 | Meaning: The specified entry table was
destroyed. There were connections to linkage indexes, PURGE=YES was
specified, and the entry table was disconnected. Action: None required. However, you may take some action based upon your application. |
For examples of the use of this and other cross memory macros, refer to the chapter on cross memory communication in z/OS MVS Programming: Extended Addressability Guide.