Remote Files - IBM Professional Series User Manual

Virtual machine
Table of Contents

Advertisement

Remote Files
Whether or not a minidisk is really local or remote, once you
have performed LINK and ACCESS, you can access files on
that disk using CMS and user-written programs. That is, you
have the full range of CMS file commands at your disposal.
At a high level, you can invoke an editor, to edit and modify
any file; you can TYPE out a given file; you can
COPYFILE any file; or you can compile a program. These
commands are available to you even if the files exist on a
remote minidisk (in such cases we call the files remote).
At a low level, you have available to you all of the CMS file
system macros, such as:
l.
FSCB
2.
FSOPEN
3.
FSSTATE(W)
4.
FSREAD
5.
FSWRITE
6.
FSPOINT
7.
FSCLOSE
You can use these macros in your programs to read and write
data in both remote and local files, without the application
program having to be aware of where the file is actually
located. Some applications which are dependent on certain
CMS control blocks and internal pointers may not work. For
example, applications which search internal CMS control
blocks for a file's FST may not work correctly.
Also, any single read or write of data that your applications
perform must be less than or equal to 65535 bytes.
Therefore, you should not read or write remote files with a
record length greater than 65535, or try to read or write
more than 65535 bytes of a remote file with a single file
system operation.
6-12
VM/PC Users Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vm/pc

Table of Contents