Navigates to the enabled and navigable primary key item with the next higher sequence number than the current item. If there is no such item, NEXT_KEY navigates to the enabled and navigable primary key item with the lowest sequence number. If there is no primary key item in the current block, an error occurs.
If the validation unit is the item, NEXT_KEY validates any fields with sequence numbers greater than the current item or less than the target item.
PROCEDURE NEXT_KEY;
Built-in Type restricted procedure
Enter Query Mode yes
none
/*
** Built-in: NEXT_KEY
** Example: Jump the cursor to the next primary key item in
** in the current block.
*/
BEGIN
Next_Key;
END;