Returns the last Automatic Sequence Number applied.
Number, representing an Automatic Sequence Number or $Null in case of an error.
The value returned by $ ZimSeqNum is taken from the most recent ASN used. Notice that when the ADD command adds more than one record, $ ZimSeqNum will contain the value of the last record added.
$ ZimSeqNum also returns the number set using SET SEQUENCENUMBER MyEnt
If all ADD statements refer to objects that contain ASN, the $ZimSeqNum will return the value taken by the last ADD:
ADD 1 Customers …
ADD 100 MyEnt from MyDoc …