OPEN Procedures (UNIX/OpenVMS)

(OPENR, OPENU, OPENW)

Open a specified file for input/output:

CAUTION: When you use OPENW to create a new file under UNIX, if the file exists, it is truncated and its old contents destroyed. Under OpenVMS, a new file with the same name and a higher version number is created.

Usage

Input Parameters


NOTE: Due to limitations in RMS, the length of records must always be an even number of bytes. Therefore, odd record lengths are automatically rounded up to the nearest even boundary.

Keywords


NOTE: With some controller/disk combinations, RMS does not allow transfer of an odd number of bytes.

CAUTION: Delete will cause the file to be deleted even if it was opened for read-only access. In addition, once a file is opened with this keyword, there is no way to cancel its operation.


Space Causes the next page of text to be displayed.
Return Causes the next line of text to be displayed.
Q Suppresses all following output.
H Displays the list of available options at this point.







CAUTION: It is not a good idea to allow shared write access to files open in RMS block mode. In block mode, OpenVMS cannot perform the usual record locking which avoids file corruption. It is therefore possible for multiple writers to corrupt a block mode file. This same warning also applies to fixed-length-record disk files, which are also processed in block mode.

Example






See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.