Returns the next retained command record after recordId.
Prompt-only records are skipped. If recordId is not retained, no neighbor is inferred.
next command record id, or 0 when none exists.
0
retained command record id.