GETLPSEQ |
DEVELOPER |
|
|
Purpose |
GETLPSEQ retrieves the last sequence number used. It works only for auto-sequenced files, not for indexed paging. |
Syntax |
#variable = GETLPSEQ(file-name) |
Operation |
#variable is a numeric variable to which the sequence number is assigned. If the result is zero, there are no paging records with the specified key. |
Remarks |
The file must be referenced in the function, and the file must have been defined with a key. All parts of the key, except the sequence number part, must be specified by some means, such as the assignment of a string to the key variable. |
Topic ID: 520061