OPEN-FILE: Difference between revisions

From NDWiki
Jump to navigation Jump to search
(created page for the OPEN-FILE command)
 
(added Related commands section)
Line 34: Line 34:


A list of logical numbers is given in <ref>{{ND-doc|60.050.06}}Appendix C</ref>.
A list of logical numbers is given in <ref>{{ND-doc|60.050.06}}Appendix C</ref>.
== Related commands ==
@[[CONNECT-FILE]]
@[[CLOSE-FILE]]
@[[SCRATCH-OPEN]]
@[[SET-PERMANENTLY-OPENED]]
== References ==
== References ==
{{ND-doc|60.050.06}} section 3.4.5.1
{{ND-doc|60.050.06}} section 3.4.5.1

Revision as of 17:57, 22 August 2014

@OPEN-FILE <file name> [:<type>[;<version>]], <access type>

This command is used to make a file available for access, and returns the logical unit number to be used for accessing the file.

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

:<type>

if a file with a specific type is to be opened. The default value is :SYMB.

;<version>

if a specific version is to be opened. The default value is 1.

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

If the user is allowed access to the file, the following messages is printed

FILE-NUMBER IS = n

where n is the logical unit number to be used when accessing the file later.

New file names and / or number of versions may be created together with the opening of the file by enclosing the name or number in quotation marks.

If, for any reason, it is not possible to open the file, an explanatory message is given.

A list of logical numbers is given in [1].

Related commands

@CONNECT-FILE

@CLOSE-FILE

@SCRATCH-OPEN

@SET-PERMANENTLY-OPENED

References

Norsk Data Document ND–60.050.06 SINTRAN III USERS GUIDE section 3.4.5.1

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

  1. Norsk Data Document ND–60.050.06 SINTRAN III USERS GUIDE Appendix C