z/OS MVS Programming: Extended Addressability Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Making a PC routine available to all address spaces

z/OS MVS Programming: Extended Addressability Guide
SA23-1394-00

If the PC routine is to be available to users in all address spaces, code running in the service provider's address space must issue the macros. The following figure lists the macros that must be issued. For a space switch routine, refer to the left column. For a non-space switch routine, refer to the right column. Several of the macros shown in the figure must be issued in a specific sequence. Therefore, IBM® recommends that the service provider issue the macros in the sequence listed.

Macros that must be issued if the PC routine is to be available to users in all address spaces
Space Switch Routine Non-space Switch Routine

AXSET (See note 1.)
LXRES (See note  2.)
ETDEF
ETCRE
ETCON (See note 3.)
PCLINK (See note 4.)

LXRES (See note 2.)
ETDEF
ETCRE
ETCON
PCLINK (See note 4.)

Note:
  1. Use an AX value of 1.
  2. Use a system LX.
  3. To determine whether address space authorization (PT and SSAR authority) is needed before issuing the ETCON macro, see Address space authorization.
  4. Basic PC routines must issue the PCLINK macro to save and to restore the user's environment.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014