IBM System 360 User Manual page 69

Operating system: time sharing option terminal
Hide thumbs Also See for System 360:
Table of Contents

Advertisement

link edit the load module in the JONES.PROG2.0BJ data set and place the
resultant load module in member TEMPNAME of the JONES.PROG2.LOAD data
set., enter:
READY
link prog2
If you want to link edit the load module in the JONES.PROG2.0BJ data
set and place the resultant load module
in
member ONE of the
JONES .• MODS.LOAD data set" enter:
READY
link prog2 load(mods(one»
The following example shows how to link edit the two object modules
in the SMITH.PGMl.OBJ and SMITH.PGM2.0BJ data sets.
The resultant load
module
is
placed in member TEMPNAME of the SMITH.LM.LOAD data set.
READY
link (pg.m1,pgm2) load(lm)
You can dontrol the link editing process with linkage editor control
statements.
These control statements can be in a previously created
data set, or can be introduced through the terminal.
You must give the
name of the data set, or an asterisk (indicating that you will introduce
the control statements through the terminal) in the list of input data
sets.
The following example shows how to link edit the object module in
the CARTER.TRAJ .OBJ data set.
There are control statements in the
CARTER. CNTL .• DATA data set.
The load module is placed in member TEMPNAME
of CARTER,. TRAJ • LOAD •
READY
link (traj,cntl.data)
Using the same example, if you want to introduce the control
statements through your terminal, enter:
READY
link (traj .•
*)
The system will prompt you for the control statements at the
appropriate time.
You must follow your last control statement with a
null line.
You can also have the linkage editor search a subroutine library to
resolve external references.
(External references are references to
other modules.)
The subroutine library is usually one of the language
libraries and it is specified with one of the following operands:
Operand
COBLIB
FORTLIB
PLILIB
Subroutine Library
SYS1.COBLIB
SYS1. FORTLIB
SYS1.PL1LIB
In addition to., or instead of a language library,' you can use the LIB
operand to specify the name of one or more user libraries.
The
libraries are searched in the order you specify.
The following example shows how to link edit the object module in
JAMES,.PRG,.OBJ.
The load module is placed in JAMFS. PRG. LOAD (TEMPNAME) •
The libraries
SYS1.PL1LIB~
and DEPT39.LIB .• SUBRT2 are to be searched to
resolve external references.
READY
link prg plilib lib('dept39.lib.subrt2')
Programming at the Terminal
67

Advertisement

Table of Contents
loading

Table of Contents