GenSysId(key)
Key = name of Id number sequence
Return type:
Numeric value incremented by 1
Description:
This is a function that automatically generates a sequence of number identified by a “key”
Normally used for a unique identifying number for order, invoices or in most cases a ID number on a record. This value is unique across all servers on the same iSeries machine
Example:
imidno = gensysid('csmaimp')
Notes and Restrictions:
The “key” is case sensitive