ENDD ends the specified dialog and releases all associated storage resources. Attached workmods are deleted, data sets are closed, storage obtained on behalf of the caller is released, and the dialog token is invalidated.
The syntax of the ENDD call is:
[symbol] | IEWBIND | FUNC=ENDD [,VERSION=version] |
The value for PROTECT can be abbreviated as Y or N. YES is the default.
None.
The common binder API reason codes are shown in Table 1.
Return Code | Reason Code | Explanation |
---|---|---|
00 | 00000000 | Normal completion. Dialog ended normally. |
04 | 83000700 | One or more workmods were in an active state but they were not protected (PROTECT=NO in ENDDialog). Dialog ended normally. |
08 | 83000704 | An unexpected condition occurred while ending the dialog. The dialog is terminated, but some resources might not have been released. |
12 | 83000708 | One or more workmods were in an "active" state, and PROTECT=YES was specified or defaulted. The dialog is not terminated. |
If your program does not use the IEWBIND macro, place the address of the ENDD parameter list in general purpose register 1.
PARMLIST | DS | 0F | |
DC | A(ENDD) | Function code | |
DC | A(RETCODE) | Return code | |
DC | A(RSNCODE) | Reason code | |
DC | A(DIALOG) | Dialog token | |
DC | A(PROTECT+X'80000000') | Protection flag and end-of-list indicator | |
ENDD | DC | H'5' | ENDD function code |
DC | H'version' | Interface version number | |
PROTECT | DC | CL1'Y' | Protection
flag 'Y' = Yes |