To define or initialize a receiver, use request code 4. This request code lets you perform the following functions:
Changing the value of the buffer queue limit does not drop buffers if it is reduced. The change only prevents additional buffers from being queued.
Prevent the accidental overwrite of an existing receiver definition by setting REQIND1 to X'80'. This flag causes an exclusive-active check to be made, that is, if the receiver is presently active, no change is made to it, regardless of a match on the TCB/ASCB addresses.
The RPB fields in the following table must be set up before the call:
|
Bytes |
Field Name |
Set to... |
|---|---|---|
|
00–03 |
RPLEN |
56. |
|
04–05 |
REQUEST |
4. |
|
06–07 |
RECOPT |
A recovery option as required. |
|
12–15 |
WORADDR |
The address of a 128-byte work area. |
|
16–19 |
ASCBADDR |
The address of the current ASCB (can be obtained by a request type 3). |
|
20–23 |
BUFFQL |
The buffer queue limit: 0 to PPI maximum parameter. |
|
24–31 |
RECVERID |
The receiver ID. |
|
32–33 |
AUTHIND |
0 if senders do not require authorization or 1 if senders must be APF authorized. |
|
36–39 |
TCBADDR |
The address of the current TCB (can be obtained by a request type 3). |
|
46 |
REQIND1 |
Bit 0 (X'80') if an exclusive-active check is wanted. |
The RPB fields in the following table are returned after the call:
|
Bytes |
Field Name |
Set to... |
|---|---|---|
|
08–11 |
RETCODE |
The return code. |
|
20–23 |
ECBADDR |
The address of the receiver ECB. |
The following return codes are possible:
Request completed successfully—ECB address is set.
The receiver program is already active, and the TCB/ASCB address did not match, or they matched but the exclusive-active check flag (REQUIND=X'80') is set.
The requestor is not in primary addressing mode.
PPI is not active.
The ASCB address is not correct.
PPI requests are not supported.
No storage is available.
ESTAE could not be established as requested.
Receiver ID is invalid.
A processing error occurred.
Notes:
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |