RTCONNECT-FILE

From NDWiki
Jump to navigation Jump to search
@RTCONNECT-FILE <file name>, <file no.>, <access type>

Open a file with a previously defined number. The file will be available for all RT programs.

<file name>
(default type = SYMB) file name.
<file no.>
(octal 100 - 121) any free number.
<access type>
specifies the intended access-mode, only the following combinations are legal:
R  - sequential read
W  - sequential write
RW - sequential read and write
RX - random read
WX - random read and write
WA - sequential write append
RC - random read with read and write access from other users allowed (only contiguous files)
WC - random read and write with read and write access from other users allowed (only contiguous files)


Rules:

  1. Permitted only for users RT and SYSTEM.
  2. See rules 2 - 6 of @OPEN-FILE.
  3. When accessing files in RT programs user RT is the user.
  4. RT opened files cannot be set permanently open.

Example:

@RTCONNECT-FILE F-1, 120, R

File F-1:SYMB is opened for read by all RT programs and is given file number 120 (octal).

Related commands

@CONNECT-FILE

@RTCLOSE-FILE

@RTOPEN-FILE

References

Norsk Data Document ND–60.128.03 SINTRAN III REFERENCE MANUAL (printed February 1983), page 1-174

Norsk Data Document ND–60.174.Q01 SINTRAN III QUICK REFERENCE CARD