Previous Topic: Check the Status of a Receiver Program

Next Topic: Define and Initialize a Receiver


Obtain ASCB and TCB Addresses

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:

0

Request completed successfully.

22

The requestor is not in primary addressing mode.

24

PPI is not active.

28

PPI requests are not supported.

90

A processing error occurred.