z/OS TSO/E Programming Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Invoking the TSO/E service routines

z/OS TSO/E Programming Services
SA32-0973-00

You can use either the LINK or the LOAD macro instructions to pass control to the TSO/E service routines.

The LINK macro instruction loads the routine into storage based on the routine's RMODE attribute. The LINK macro instruction passes control to the routine in the addressing mode specified or allowed by its AMODE attribute.

The LOAD macro instruction loads the routine into storage based on the routine's RMODE attribute. Because the LOAD macro instruction loads a program but does not invoke it, you must do branches to the loaded routine. LOAD returns the address of the loaded program where the high-order bit of this address reflects the AMODE attribute of the loaded program. If the loaded program should not be invoked in the current addressing mode, you can use the BASSM, BSM, SAM24 or SAM31 instruction to set the appropriate addressing mode. If you use BASSM or BSM, ensure that the invoked program can return successfully.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014