To check the status of a receiver program, use request code 2. The return code from this request indicates whether the receiver is defined, active, or inactive.
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 |
2. |
|
12–15 |
WORADDR |
The address of a 128-byte work area. |
|
24–31 |
RECVERID |
The name of the receiver you want to query. |
The RPB fields in the following table are returned after the call:
|
Bytes |
Field Name |
Contains |
|---|---|---|
|
08–11 |
RETCODE |
The return code. |
|
34 |
FLAG |
The status of the receiver queue (for RETCODE 14 and 15). Bit 0 is set if there is space on the receiver queue or cleared if the receiver queue is full. |
The following return codes are possible:
The receiver program is active.
The receiver program is not active.
The requestor is not in primary addressing mode.
PPI is not active.
The receiver program is not defined.
PPI requests are not supported.
A processing error occurred.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |