The issue would appear to be at the end of the loop count = count + 1 endwhile no comma then at the beginning must be after the while while (count > 82) 'set t 'count the new count value increased by 1 This should make the time series look through. kind regards Howard Staines Metris Limited