File Definition Item
A file definition item, located in an account's MD, defines the location and characteristics of a file. It points to the file dictionary, giving system information in attribute 2, which specifies the location of the file in the host system, and file creation parameters in attribute 3. It also defines retrieval and update lock codes in attributes 5 and 6, and English formatting characteristics in attributes 7 to 10.
Item format
Attribute | Description |
---|---|
Item-id |
File name. |
001 |
D {I} {L||R} {C} {T} {X|Y} where:
Note
|
002 |
On a Partition Database: start , modulo id , id where:
OR, on a Filestore Database: The UNIX path name of the file dictionary. OR, for a file on a Foreign Database: n ; TableName where:
OR, for a directory view or special file: Empty. |
003 |
File creation parameters. The first character specifies the file type (see below) and the second is always '2' (file dictionary). Subsequent characters depend on the file type. For a normal file on the Local Database: File creation parameters - B2 modulo,1 (for example, where:
OR, for a file on a Foreign Database: F2 dsn, {userId}, {password} where:
|
004 |
File trigger information. This is a subvalued list of trigger subroutine names in the order PRE-WRITE, POST-WRITE, PRE-DELETE, POST-DELETE. |
005 |
Optional. Retrieval lock code(s). |
006 |
Optional. Update lock code(s). |
007 |
Optional. Conversion codes for English to display item-ids. |
008 |
Optional V (sublist) code for English. |
009 |
Mandatory. Contains a code specifying the type of alignment to be used by English. Must be one of the following:
Note For more details, refer to the topic Data Definition Item. |
010 |
Maximum width of item-id column. Defaults to 10 when the file dictionary is created. |
011 |
Not used and reserved. |
012 |
Null. |
013 |
Optional. Reallocation parameters. At the next restore from a FILE-SAVE, the file dictionary is allocated the new modulo and separation parameters specified here. The format of this specification is (modulo, separation), where modulo is the new modulo expressed as a decimal integer (separation is always 1 on the current version of Reality). |
014 - 020 |
Reserved. |