To link-edit a relocatable module from a DOS private library and add
linkage editor control statements to it, you could use this procedure:
1. Identify the library and use theRSERV com.and to copy the
relocatable module into aCMS TEXT file. In this example, the module RTNC is to be copied from the library OBJ.MODS: assgn sysrlb e
dlbl ijsysrle dsn obj mods (sysrlb
rserv rtnc
2. Create aDOSLNK file, insert the linkage editor control statements,
and copy theTEXT file created in step 1 into it using the GETFILE
subcommand:
edit rtnc doslnk
input actionreI getfile rtnc text a
file
3. Invoke the linkage editor with theDOSLKED command:
doslked rtnc mydoslib
Alternatively, you could create aDOSLNK file with the following
records:ACTION REL INCLUDE RTNC
and link-edit the module directly from the relocatable library. If you
do not need a copy of the module on aCftS disk, you might want to use
this method to conserve disk space.When the linkage editor is reading modules, it may encounter a blank
card at the end of a file, or a *(comment) card at the beginning of a
file. In either case, it issues a warningmessage indicating an invalid
card, but continues to complete the link-edit.
LINKAGEEDITOR OUTPUT: CMS DOSLIBS The CMS/DOS linkage editor always places the link-edited executable
phase in aCMS library with a filetype of DOSLIB. You should specify
the filename of theDOSLIB when you enter the DOSLKED command:
doslkedprogO templib
wherePROGO is the relocatable module you are link-editing and TEftPLIB is the filename of the DOSLIB. If you do not specify the name of a DOSLIB, the output is placed in a DOSLIB that has the same name as the DOSLNK or TEXT file being
link-edited. In the above example, aCftS DOSLIB is created named TEMPLIB DOSLIB, or, if the file TEMPLIB DOSLIB already exists, the phase PROGO is added to it. DOSLIBs can contain relocatable core image phases suitable for
execution inCMS/DOS. Before you can access phases in it, you must
identify it toCMS with the GLOBAL command:
global doslib templib per.lib
174IBM VM/370 eMS User's Guide
linkage editor control statements to it, you could use this procedure:
1. Identify the library and use the
relocatable module into a
dlbl ijsysrl
rserv rtnc
2. Create a
and copy the
subcommand:
edit rtnc doslnk
input action
file
3. Invoke the linkage editor with the
doslked rtnc mydoslib
Alternatively, you could create a
records:
and link-edit the module directly from the relocatable library. If you
do not need a copy of the module on a
this method to conserve disk space.
card at the end of a file, or a *
file. In either case, it issues a warning
card, but continues to complete the link-edit.
LINKAGE
phase in a
the filename of the
doslked
where
link-edited. In the above example, a
execution in
identify it to
global doslib templib per.lib
174