CREATE-FILE

From NDWiki
Jump to: navigation, search
@CREATE-FILE <file name> <number of pages>

will create a contiguous file with the given number of 1K word pages (1024 decimal words, or 2048 bytes), or an indexed file with no pages allocated if <number of pages> given is zero.

The default file type is :DATA and if a version number is included in the file name, a number of copies will be created.

<file name> 
optional version number specifies number of versions to be created (default type = DATA).
<number of pages> 
0 - create empty indexed file, > 0 - create contiguous file with the specified amount of pages (decimal, default = 0).

Rules:

  1. permitted for all users.
  2. If there are not enough pages for all versions, the system will create as many as possible and give an error message. To find the number created, use @LIST-FILE.

Example:

@CREATE-FILE F-1, 0

One version of the indexed file F-1:DATA is created in default directory.

Related Commands

@OPEN-FILE

@ALLOCATE-FILE

@CREATE-NEW-VERSION

References

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

Norsk Data Document ND–60.128.01 SINTRAN III REFERENCE MANUAL (printed June 1980), page 1-44

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