CONNECT-FILE

From NDWiki
Jump to navigation Jump to search
@CONNECT-FILE <file name> <file number> <access type>

This command may be used to open a mass storage file with a predefined file number. Otherwise it acts like the OPEN command.

<file name>

could be the name of a peripheral unit, eg., LINE-PRINTER or a user file name, which may be prefixed with file-directory-name and user-name if necessary.

<file number>

is the logical unit number the file should be associated with. The number must be within 101 (octal) to 177 (octal), and not previously opened by the user.

<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)

References

{ND-doc|60.050.06}} section 3.4.5.2

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