Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Examples using the LINK command HLASM Programmer's Guide SC26-4941-06 |
|
If your assembly produced an object module in a data set called PROGRAM1.OBJ, issue the following LINK command at your terminal:
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:
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:
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:
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. |
Copyright IBM Corporation 1990, 2014
|