This script function returns an integer indicating for which time one single record is evaluated in a LOAD statement with a while clause. The first iteration has number 1. The IterNo function is only meaningful if used together with a while clause.
LOAD * INLINE
This LOAD statement will generate one record per date within the range defined by StartDate and EndDate.
In this example, the resulting table will look like this: