Example:
OPEN1,8,15 The command channel is opened.
OPEN3,8,2,"0:FILE1,SEQ,WRITE" Data Channels are opened for
OPEN4,8,2,"0:FILE2,SEQ,WRITE" writing.
PRINT#3,"IMPORTANT DATA"
PRINT#4,"MORE DATA"
OPEN3,4 A channel is opened to the printer
by mistake.
?FILE OPEN ERROR? An error message is displayed on the
screen.
READY.
Since there was an error, all logical files in the computer are closed, but the
channels in the disk drive are still open. To close the disk channels, type:
OPEN1,8,15
CLOSE1
Now all data channels in the disk drive are properly closed.
CLOSING THE DATA CHANNEL
The CLOSE command closes a file an the data or command channel associated
with it. When ever you close a file opened with a write channel, the closing of
that file writes the final block of data to the disk and updates the disk
directory. When you close a file opened with a read channel, that channel is simply
closed down.
NOTE
When a drive is initialized with INITIALIZE, NEW
or VALIDATE, all channels associated with that
drive are deleted. These commands should not be
executed when there are any files open since the files
will be disrupted.
PRINT#
The PRINT# command transmits a disk command string to the drive.
The format of PRINT# is:
PRINT#lfn,"commandstring"
34