Link Editing A Compiled Program - IBM System 360 User Manual

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

Advertisement

r----------------------------------------------------------------------,
1
!:~Y
prog2
new
cobol
I
I
INPUT
I
I
I
source program
I
I
I
EDIT
I
save
I
SAVED
end
READY
allocate
READY
allocate
READY
allocate
READY
a.llocate
READY
al10cate
READY
dataset (. sys 1. cobl ib' ) file(syslib) shr
file (sysutl) new block(460) space(700,100)
file (sysut2) new block (460) space(700,100)
file (sysut3) new block (460) space (700,100)
file (sysut4) new block (460) space(700,100)
allocate datasetC*) file(sysprint)
READY
allocate dataset(prog2.obj) file(syslin) new block(SO) space(SOOI100)
READY
allocate data set(prog2.cobol) file(sysin) old
READY
call '. sysl.linklib (ikfcbIOO) , 'map load nodeck flagw'
COBOL listings and messages
READY
free file( syslib, sysut1, sysut2, sysut3,sysut4 ,sysprint,sysin)
READY
I
I
I
I
I
I
I
I
I
I
- - - - - - - -______________________________________________________________ J
Figure 10.
COBOL Compilation
Link Editing a Compiled Program
The LINK command makes available to you the services of the linkage
editor.
The linkage editor processes the compiled program (object
module) and readies it for execution..
The processed object module
becomes a load module.
Optionally, the linkage editor can process more
than one object module and/or load module and transform them into a
single load module.
For complete information on the linkage editor,
refer to the publication, Linkage Editor and Loader.
In your LINK command you must first list the name or names of the
object modules you want to link edit.
(If you omit the descriptive
qualifier the system assumes OBJ.)
After the names of the object
modules you should use the LOAD operand to indicate the name of a member
of a partitioned data set where you want the load module placed.
(If
you omit the user-supplied name of the load module data set the system
assumes it has the same user-supplied name as the object module.
If you
omit the descripti ve.qualifier the system assumes LOAD.
I f
you omit the
member name the system assumes TEMPNAME.)
For example, if you want to
66
TSO Terminal User's Guide
(Release 21)

Advertisement

Table of Contents
loading

Table of Contents