ISMRANDOMWRITE physically updates the KEYEDIO file with your record and updates all key tables. Recovery information is saved before the key tables are updated. ISMRANDOMWRITE does not affect the current record pointer.
The ISMRANDOMWRITE procedure requires the following parameters to return a random WRITE result. ISMRANDOMWRITE uses the primary key by default.
ISMRANDOMWRITE (ISAMFILE, RECORD)
-
ISAMFILE—The user's file.
-
RECORD—The user's record area.
Field |
Value |
Result [26:10] |
Mnemonic |
Meaning |
---|---|---|---|---|
[0:1] |
1 |
100 |
DIFFERENTLENGTHRECORD |
This record length is not the same as the record length of the file. |
[5:1] |
1 |
97 |
DUPLICATEKEYS |
A duplicate key was found but duplicate keys are not allowed. |
The random write result values can be found in the File Attributes Programming Reference Manual in the explanation of the STATE general file attribute.