ALLOCATION=intexpr Applies to: Sequential Files
Specifies the initial size of the file in RMS 512 byte blocks. ALLOCATION accepts an integer argument in the range of 0 to 4,294,967,295. An argument of zero (0) does not allocate any space for the file at file creation. When a WRITE requires space in a file that is full, RMS extends the file by the amount specified in the EXTENSION deviceparameter.
By default, new files have an ALLOCATION of zero (0).
APPEND Applies to: SD
Positions the file pointer at the end-of-file. This deviceparameter only affects the device on the first OPEN command. Re-OPENing an already OPEN device with this deviceparameter has no effect.
By default, OPEN sets the file pointer to the beginning-of-file.
ATTACH=expr Applies to: SOC
When ATTACH is used and one of ZLISTEN and CONNECT is specified at the same time, the value of expr becomes the identifier of the newly created socket. If neither ZLISTEN nor CONNECT is specified, ATTACH is ignored.
BLOCKSIZE=intexpr Applies to: TRM MBX
BLOCKSIZE=intexpr Applies to: Terminals and Printers and VMS Mailboxes
Specifies the size in bytes of the maximum single read or write for the specified device.
For mailboxes, BLOCKSIZE controls both block-size and record-size, and RECORDSIZE is ignored.
Blocksize in Bytes |
|||
DEVICE |
DEFAULT |
MINIMUM |
MAXIMUM |
MAILBOX |
1024 |
1 |
65535 |
CONNECT=expr Applies to: SOC
Enables a client connection with a server, which is located by the information provided by expr. A new socket is allocated for the client connection and is made the current socket for the device, if the operation is successful.
expr specifies the protocol and protocol specific information. Currently, TCP/IP is the only protocol GT.M supports. expr should be of the format "<host>:<port>:TCP", where host is either an IP address or a hostname like server.sanchez.com.
![]() |
|
CONNECT is not compatible with ZLISTEN. |
CONTIGUOUS Applies to: SD
Specifies that RMS must allocate physically contiguous (adjacent) disk space for a new file. If the disk cannot supply the required amount of contiguous space, the OPEN fails.
By default, RMS the operating system uses a contiguous-best-try algorithm. The algorithm uses contiguous space if available; otherwise, it pieces the file together out of the largest available extents.
[NO]DELIMITER=expr Applies to: SOC
DELIMITER establishes or replaces the list of delimiters used by the sockets associated with the device. The default for on a command that first OPENs a device is NODELIMITER. The delimiter list on a preexisting device remains the same until it is explicitly replaced or deleted.
expr must be a string of the following format:
':' is used to separate delimiters (it is the delimiter for delimiters).
'/' serves as an escape character.
![]() |
|
expr "ab:/:://:bc" is interpreted as four delimiters, which are "ab", ":", "/", and "bc". One socket can have 0-64 delimiters and each delimiter can contain 1-64 characters. |
EXCEPTION=expr Applies to: All devices
Defines an error handler for an I/O device. The expression must contain a fragment of GT.M code (for example, GOTO ERRFILE) that GT.M XECUTEs when the driver for the device detects an error, or an entryref to which GT.M transfers control, as appropriate for the current gtm_ztrap_form.
For more information on error handling, refer to the "Error Processing" chapter in this manual GT.M Programmer's Guide.
EXTENSION=intexpr Applies to: SD
Specifies the number of 512 byte blocks for RMS to extend the file when the original ALLOCATION is exhausted. If integer expression equals zero (0), the default for the disk volume, which is generally small, determines the extension size.
By default, RMS uses an EXTENSION of zero (0).
[NO]FIXED Applies to: MTFMT SD FIFO
Selects a fixed record length format for sequential disk files. FIXED does not specify the actual length of a record. Use RECORDSIZE to specify the record length.
NOFIXED specifies a variable length record format for sequential disk files. NOFIXED is a synonym for VARIABLE. FIXED is incompatible with VARIABLE.
By default, records have VARIABLE length.
GROUP=expr Applies to: SD
Specifies UIC-based security on RMS files. The expression is a mask evaluating to null or to any combination of the letters REWD, indicating respectively READ, EXECUTE, WRITE, and DELETE access. When any one of these deviceparameters appears on an OPEN of a new file, any user category (OWNER, SYSTEM, WORLD) that is not explicitly specified is given the default mask. When any one of these deviceparameters appears on an OPEN of an existing device, any user category that is not explicitly specified remains unchanged.
In order to modify file security, the user who issues the OPEN must have control access.
By default, OPEN does not modify the UIC-based security on an existing file. Unless otherwise specified, when OPEN creates a new file, it establishes security using standard defaulting rules.
IOERROR=expr Applies to: SOC
Enables exception handling in socket devices. expr specifies the I/O error trapping mode. A value equal to "TRAP" specifies that I/O errors on a device raise error conditions. A value equal to "NOTRAP", or when IOERROR is not specified, indicates that I/O error on a device does not raise error conditions.
![]() |
|
GT.M currently handles exception handling at device level instead of socket level. |
NEWVERSION Applies to: SD
The NEWVERSION deviceparameter creates a new version of the file.
On a Files-11 magnetic tape, RMS places the file at the end-of-tape. The NEWVERSION deviceparameter does not apply to foreign tapes.
By default, if any version of the file exists, OPEN accesses the current version. Otherwise, if no version of the file exists, OPEN without READONLY creates a new file.
OWNER=expr Applies to: SD
Specifies UIC-based security on RMS files. The expression is a mask evaluating to null or to any combination of the letters REWD, indicating respectively READ, EXECUTE, WRITE, and DELETE access. When any one of these deviceparameters appears on an OPEN of a new file, any user category that is not explicitly specified is given the default mask. When any one of these deviceparameters appears on an OPEN of an existing file, any user category (GROUP, SYSTEM, WORLD) that is not explicitly specified remains unchanged.
To modify file security, the user who issues the OPEN must have control access.
By default, OPEN does not modify the UIC-based security on an existing file. Unless otherwise specified, OPEN establishes security using standard defaulting rules when it creates a new file.
PRMMBX Applies to: MBX
Specifies that the argument of the OPEN is a permanent mailbox name. If the mailbox does not exist and the process has adequate privileges, GT.M creates the mailbox. If the mailbox does not exist and the process does not have adequate privileges, the process generates a run-time error. A process does not require any privileges to OPEN an existing mailbox. See the Using Mailboxes section for a discussion of the required privileges.
By default, OPEN translates its device argument as a logical name and uses the result as the actual device/file-specification. This means that if the result is not an existing device or file, OPEN attempts to create an RMS sequential disk file with that name.
[NO]READONLY Applies to: SD MBX
OPENs a device for reading only (READONLY) or reading and writing (NOREADONLY).
To open a sequential file using the READONLY parameter, the file must exist on the disk. If it does not, GT.M issues a run-time error.
When GT.M encounters a WRITE directed to a file, mailbox OPENed READONLY, GT.M issues a run-time error.
By default, OPEN accesses the device or file NOREADONLY (read-write).
RECORDSIZE=intexpr Applies to: SD
Overrides the default record size for a disk or magnetic tape file and specifies the new maximum record size in bytes.
For mailboxes, BLOCKSIZE controls both block-size and record-size, and RECORDSIZE is ignored.
Recordsize in Bytes |
|||||
DEVICE |
DEFAULT |
FIXED RECORDS |
VARIABLE RECORDS |
||
MINIMUM |
MAXIMUM |
MINIMUM |
MAXIMUM |
||
SEQUENTIAL DISK FILE |
1024 |
1 |
32767 |
15 |
32767 |
REWIND Applies to: SD MTF MT
REWIND positions the file pointer of a sequential disk or magnetic tape file to the first record.
By default, OPEN does not REWIND.
SHARED Applies to: SD
Allows more than one user to access the same disk file. A file OPENed SHARED can accommodate a theoretically unlimited number of readers and a single writer. Any attempt to OPEN a file that is already OPEN by another process causes a run-time error unless all processes OPEN the file SHARED or READONLY. OPENing a file SHARED prevents RMS from using most of its algorithms for optimizing access and therefore significantly reduces the performance of I/O to that file.
By default, OPEN accesses the file or device exclusively (not SHARED).
SYSTEM=expr Applies to: SD
Specifies UIC-based security on RMS files. The expression is a mask evaluating to null or to any combination of the letters REWD, indicating respectively READ, EXECUTE, WRITE, and DELETE access. When any one of these deviceparameters appears on an OPEN of a new file, any user category that is not explicitly specified is given the default mask. When any one of these deviceparameters appears on an OPEN of an existing file, any user category (OWNER, GROUP, WORLD), that is not explicitly specified remains unchanged.
In order to modify file security, the user who issues the OPEN or CLOSE must have control access ownership.
By default, OPEN does not modify the UIC-based security permissions on an existing file. Unless otherwise specified, when OPEN creates a new file, it establishes security using standard defaulting rules.
TMPMBX Applies to: MBX
Specifies that the argument of the OPEN is a temporary mailbox name. If the mailbox does not exist, and the process has adequate privileges, GT.M creates the mailbox. If the mailbox does not exist and the process does not have adequate privileges, the process generates a run-time error. A process does not require any privileges to OPEN an existing mailbox. See the Using Mailboxes section for a discussion of the required privileges.
By default, OPEN translates its device argument as a logical name and uses the result as the actual device/file-specification. This means that if the result is not an existing device or file, OPEN attempts to create an RMS sequential disk file with that name.
[NO]TRUNCATE Applies to: SD
Enables or disables overwriting of existing data in Files-11 RMS files. Because the position of each record depends on the prior record, a WRITE destroys the ability to position reliably to subsequent records in a file. Therefore, by default (NOTRUNCATE), GT.M permits WRITEs only when the file pointer is positioned at the end-of-file. When a device has TRUNCATE enabled, a WRITE issued when the file pointer is not at end-of-file truncates the file by destroying all data from the file pointer to the end-of-file.
By default, OPEN accesses the file NOTRUNCATE, which does not allow overwriting of Files-11 RMS files.
VARIABLE Applies to: SD
VARIABLE Applies to: Sequential Files
Specifies the VARIABLE record length format for sequential disk.
VARIABLE is a synonym for NOFIXED. VARIABLE length records on disk start with two bytes of overhead for the device driver that hold the actual record-length represented as a two's complement binary number. VARIABLE length tape records start with four bytes of overhead, and represent the length as ASCII digits. A BLOCKSIZE for VARIABLE length tape records must specify at least four bytes more than the maximum record length. VARIABLE is incompatible with FIXED.
By default, records have VARIABLE length.
WORLD=expr Applies to: SD FIFO
Specifies UIC-based security on RMS files. The expression is a mask evaluating to null or to any combination of the letters REWD, indicating respectively READ, EXECUTE, WRITE, and DELETE access. When any one of these deviceparameters appears on an OPEN of a new file, any user category that is not explicitly specified is given the default mask. When any one of these deviceparameters appears on an OPEN of an existing file, any user category (OWNER, GROUP, SYSTEM), that is not explicitly specified remains unchanged.
To modify file security, the user who issues the OPEN must have control access.
By default, OPEN and CLOSE do not modify the UIC-based security on an existing file. Unless otherwise specified, when OPEN creates a new file, it establishes security using standard defaulting rules.
[Z][NO]WRAPApplies to: NULL SD SOC
Enables or disables automatic record termination. When the current record size ($X) reaches the maximum WIDTH and the device has WRAP enabled, GT.M starts a new record, as if the routine had issued a WRITE ! command.
NOWRAP causes GT.M to require a WRITE ! to terminate the record. NOWRAP allows $X to become greater than the device WIDTH for terminals and null devices. Sequential files discard any portion of the current output record over the device width.
By default, records WRAP.
[NO]WRITEONLY Applies to: MBX
OPENs a mailbox for writing only (WRITEONLY) or reading and writing (NOWRITEONLY).
By default, OPEN creates new mailboxes NOWRITEONLY (read-write).
ZBFSIZE Applies to: SOC
Allocates a buffer used by GT.M when reading from a socket. The ZBFSIZE deviceparameter should be at least as big as the largest message expected.
By default, the size of ZBFSIZE is 1024 and the maximum it can be is 1048576.
Z[NO]DELAY Applies to: SOC
Controls buffering of data packets by the system TCP stack using the TCP_NODELAY option to the SETSOCKOPT system call. This behavior is sometimes known as the Nagle algorithm. The default is ZDELAY. This delays sending additional packets until either an acknowledgement of previous packets is received or an interval passes. If several packets are sent from one end of a connection before the other end responds, setting ZNODELAY may be desirable though at the cost of additional packets being transmitted over the network. ZNODELAY must be fully spelled out.
Z[NO]FF=expr Applied to: SOC
expr specifies a string of characters, typically in $CHAR() format to send to socket device, whenever a routine issues a WRITE #. When no string is specified or when ZFF="", then no characters are sent. The default in GT.M is ZNOFF.
ZIBFSIZE Applies to: SOC
Sets the buffer size used by the network software (setsockopt SO_RCVBUF).
The default and the maximum values depend on the platform and/or system parameters.
ZLISTEN=expr Applies to: SOC
A new socket is allocated to listen for a connection. It is made the current socket for the device, if the operation is successful. Upon successful completion, $KEY is set to the format of "BOUND|<socket handle>|<port number>"otherwise, $KEY is assigned the empty string.
expr specifies the protocol and protocol specific information. Currently, TCP/IP is the only protocol GT.M supports. expr must be of the format "<port>:TCP", where port specifies the port number at which the socket is waiting for a connection.
![]() |
|
ZLISTEN is not compatible with ATTACH in the USE command and CONNECT in both USE and OPEN commands. |