ISMSEQUENTIALWRITE updates the file with your record and updates all key tables. Recovery information is saved before the key tables are updated. A WRITE operation physically updates the keyed file. ISMSEQUENTIALWRITE does not affect the current record pointer.
The ISMSEQUENTIALWRITE procedure requires the following parameters to return a sequential WRITE result:
ISMSEQUENTIALWRITE (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 in the file. |
[5:1] |
1 |
97 |
DUPLICATEKEYS |
A duplicate key was found, and duplicate keys are not allowed. |
[6:1] |
1 |
101 |
PRIMARYKEYOUTOFORDER |
The key was out of order. Sequential WRITE operations require the current key to be greater than the previous key. Bit 0 also equals 1. |
The sequential write result values can be found in the File Attributes Programming Reference Manual in the explanation of the STATE general file attribute.