The set_dub_default service allows the calling address space to change the current default dub setting for tasks within the address space.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1SDD): | 31-bit |
AMODE (BPX4SDD): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4SDD with the same parameters.
The name of a fullword that contains the dub setting value.
Return_code | Explanation |
---|---|
EINVAL | One of the parameters contains an unsupported or incorrect value. The following reason code can accompany the return code: JRDubSetting. |
EPERM | The calling process does not have the appropriate privilege to perform the requested operation. The following reason code can accompany the return code: JROK. |
The name of a fullword in which the set_dub_default service stores the reason code. The set_dub_default service returns Reason_code only if Return_value is -1. Reason_code further qualifies the Return_code value. For the reason codes, see z/OS UNIX System Services Messages and Codes.
This option is honored only when it is specified on a BPX1SDD call prior to an address space dub. When issued from any task after the address space has already been dubbed, this option is ignored.
For an example using this callable service, see BPX1SDD (setdubdefault) example.