CONNECT-FILE

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

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.

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.

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)