The following example shows how to link your line printer to the disk
file PRINTITXT on Drive
0 using a phantom device.
ROUTE
*OU
TO
PR
I
NT
!T){T:
0
(ENTER)
creates the phantom device
*DU
and routes it to the disk file
PRINTITXT on Drive
0.
If
PRINTITXT does not exist, it is created.
If
it
already exists, data sent to the file is appended onto its end.
LINK
*PR
*OU
(ENTER)
links the printer to *DU, which
in
turn is routed to PRINT/TXT. All
output sent to the line printer is also sent to *DU (that is, written to
PRINTITXT).
NOTE: PRINTITXT remains open until you issue a RESET
*DU
command. To break the link between the printer and PRINTITXT
without closing the file, use the RESET
*PR
command. See the
ROUTE and RESET library commands; also see the "Using the
Device-Related Commands" section.
Sample Use
Suppose you want to use your computer to communicate with another
computer. First, set the Communications Line device (*CL) and use
SETCOM to specify WORD
=8 and PARITY = NO with the
commands:
SET *CL
TO
COM
/
Ol.JR
(ENTER)
SETCOM
(WORO=8,PARITY=NO)
(ENTER)
then issue commands:
LINK
*00
*CL
LINK
*K
I
*CL
to link the video display and keyboard to the RS-232C interface. This
lets your Model 4 act as a "host" and be accessed by a remote
terminal via the RS-232C hardware.
1-89