Creating a load module on TSO

You can invoke the binder on TSO (Time Sharing Option) with the LINK and LOADGO commands.

The LINK command creates a load module and saves it in a PDS or it creates a program object and saves that in a PDSE.

The LOADGO command creates and executes a program module. The module is not saved in a program library.

Examples using the LINK command

If your assembly produced an object module in a data set called PROGRAM1.OBJ, issue the following LINK command at your terminal:

LINK PROGRAM1

The program module is placed by default in member TEMPNAME of a partitioned data set, or PDSE program library called userid.PROGRAM1.LOAD. If you want to put the program module in a different data set, issue the following LINK command:

LINK PROGRAM1 LOAD(data-set-name(member-name))

where data-set-name is a program library, and member-name is the name of the program module.

The following example shows how to link two object modules and place the resulting program module in member TEMPNAME of the userid.LM.LOAD data set:

LINK PROGRAM1,PROGRAM2 LOAD(LM)

If your program refers to other modules (that is, external references), you can instruct the binder to search for them by including the LIB parameter on the LINK command. The LIB parameter specifies one or more names of library data sets to search. For example:

LINK PROGRAM1 LIB('SALESLIB.LIB.SUBRT2')

This request searches library SALESLIB.LIB.SUBRT2.

You can also specify link options on the LINK and LOADGO commands. See Specifying binder options using the TSO LINK command.

Binder options are discussed in Binder processing options.

For more information about using the LINK and LOADGO commands, see the z/OS TSO/E Command Reference.


[ Top of Page | Previous Page | Next Page | Contents | Index ]