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 following RPB fields must be set up before the call:

Bytes

Field Name

Set to...

00-03

RPLEN

56

04-05

REQUEST

3

12-15

WORADDR

address of 128 byte work area

The following RPB fields are returned after the call:

Bytes

Field Name

Contains

08-11

RETCODE

see below

16-19

ASCBADDR

address of current ASCB

36-39

TCBADDR

address of current TCB

The following return codes are possible:


Copyright © 2010 CA. All rights reserved.