HP (Hewlett-Packard) HP 3000 Laptop User Manual


 
Chapter 4 317
Command Definition F-K
LINK
SHARE Specifies that data symbols should be exportable and importable (shared)
in the resulting executable library.
Operation Notes
The Link Editor uses $STDINX, $STDIN, and $STDLIST as standard files. The Link Editor
reads its commands from $STDINX. For interactive sessions this is the terminal keyboard.
For a batch job, it is the job stream file.
You can redirect $STDINX to another file. The file must be an unnumbered ASCII file
containing valid HP Link Editor/iX commands. Enter a RUN command with the STDIN
option. For example, to use the file SCRIPT as the standard input file, enter the command:
RUN LINKEDIT.PUB.SYS;STDIN=SCRIPT
If you start the Link Editor using the LINK command, or if you execute it by passing a
command in the INFO string of the RUN command, $STDINX is not used. Instead, the single
command is executed and the Link Editor terminates.
The Link Editor writes all prompts, error messages, and other information to $STDLIST.
During an interactive session, this is your terminal. For a batch job, the output spoolfile is
used.
You can use another device for $STDLIST. Use the RUN command with the STDLIST
option. Note that when you do this interactively, the command prompts do not appear on
the screen. For example, to send the Link Editor output to the printer:
FILE LINKOUT;DEV=LP
RUN LINKEDIT.PUB.SYS;STDLIST=*LINKOUT
Link Editor listings and maps are sent to the file LINKLIST, not to $STDLIST. The listings
and maps sent to LINKLIST are:
The symbol map produced by the MAP option of the LINK command.
The listing produced by the LISTPROG command.
The listing produced by the LISTOBJ command.
The listing produced by the LISTRL command.
The listing produced by the MAP option of the ADDXL command.
The listings produced by the LISTXL command.
LINKLIST output goes to $STDLIST. But you can redirect it to another file or device by
using the FILE command. To send the listing of the relocatable library LIBRL to the
printer:
FILE LINKLIST;DEV=LP
LINKEDIT
LinkEd> LISTRL RL=LIBRL
LinkEd> EXIT