Skip to content

StoreSequence

table category: table-control no `||` resultSize: 1

Persists a global ID sequence to disk so a later run can continue it.

Used in tandem with AutoGenId when populating a CDM table over several runs. After a run, the named global sequence is serialised; the next run picks up where it left off, ensuring generated IDs remain unique across runs.

Parameters

1name Mandatory — accepts: STRING

The name of an existing global sequence created with AutoGenId.

Requires

  • A global sequence with the given name must already exist.

Examples

StoreSequence("drug_exposure_seq")

See also

StoreIndexMap, AutoGenId