To obtain ASCB and TCB addresses, use request code 3. This request code allows application programs written in languages that do not allow you to obtain the ASCB and TCB addresses of the current program, to obtain them. These addresses are required for some other PPI request codes.
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 |
3. |
|
12–15 |
WORADDR |
The address of a 128-byte work area. |
The RPB fields in the following table are returned after the call:
|
Bytes |
Field Name |
Contains |
|---|---|---|
|
08–11 |
RETCODE |
The return code. |
|
16–19 |
ASCBADDR |
The address of the current ASCB. |
|
36–39 |
TCBADDR |
The address of the current TCB. |
The following return codes are possible:
Request completed successfully.
The requestor is not in primary addressing mode.
PPI is not active.
PPI requests are not supported.
A processing error occurred.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |