User`s guide
File Access Using Kermit
After the remote Kermit server has been initiated, you are ready to use the Kermit line for
file access. In general, to access a file via Kermit with the V+ system, all you have to do is
specify the KERMIT> physical device in a normal V+ file-access command or instruction. For
example, the command:
LOAD K>file_spec
loads (from the remote system) the programs or data contained in the specified file. The file
specification may be a simple file name, or it may contain device and directory information.
The actual interpretation of the file specification depends on the remote Kermit server as well
as on the type of remote system being used.
You may also use the V+ DEFAULT command to define the default disk device to be the
Kermit line. For example, you can enter:
DEFAULT = K>directory/
In this command, K> tells the V+ system it should access the Kermit device (when the local
disk device is not explicitly specified), and directory represents directory information to be
used as the default in subsequent file specifications.
After the above DEFAULT command is entered, the command:
LOAD file_name
loads a program or data file from the Kermit line.
It is also possible for a V+ program to READ and WRITE to remote sequential files over the
Kermit line. To do that, the program has to perform the following steps:
1. ATTACH a disk logical unit, specifying the physical device KERMIT (explicitly or via the
current default).
NOTE: Only one logical unit in the entire V+ system can be attached to the
KERMIT physical device at any one time. An attempt to perform a second
attachment will result in the error *Device not ready*.
2. FOPEN_ the desired file on that logical unit (if the file is open in fixed-length-record
mode as long as the length is less than about 90).
3. READ or WRITE variable-length records using that logical unit.
The following V+ commands and instructions can be used to access files with Kermit:
FCOPY FOPEND STORE STORES
FDELETE FOPENR STOREL VLOAD
FLIST FOPENW STOREP VSTORE
Kermit Communication Protocol
(Undefined variable: Primary.Product_Name_V)Language User's Guide, version
17.x
Page 233










