A SERVICE OF

logo

318 Chapter 4
Command Definition F-K
LINK
Use
This command may be issued from a session, job, or program, but not in BREAK. Pressing
Break suspends the execution of this command. Entering the RESUME command continues
the execution.
Examples
This command merges the object modules from the OBJCODE and places them into the
program EXECPROG. It assigns a program stack of 50,000 bytes and requests LINK to build
a map and display the name of each object module as it is being linked.
LINK FROM=OBJCODE;TO=EXECPROG;NMSTACK=50000;MAP;SHOW
The following command merges the object modules from the OBJCODE into program file
EXECPROG and searches the relocatable libraries LINEDRAW and ARCDRAW to resolve
external references. The resulting program file can be executed only in batch mode by
anyone with user mode access.
LINK FROM=OBJCODE;TO=EXECPROG;RL=LINEDRAW,ARCDRAW;CAP=BA
To link module A and module MAIN and share data so that the data symbols in the
program file myprog can be exported and imported to and from the executable library
MYXL, enter:
LINK FROM=A,MAIN; TO=MYPROG; SHARE; RL=LIBCSHR.LIB.SYS; XL=MYXL
Related Information
Commands RUN, XEQ, LINKEDIT Utility
Manuals HP Link Editor/XL Reference Manual
HP Link Editor/iX Technical Addendum