Yes, actually quite the opposite. By adding TCOUNT to the dataset before the Data step counting TCOUNT, you caused TCOUNT to be read in each time the SET statement was executed, wiping out any count and replacing it with the initial value (zero). You could have initialized TCOUNT in the same Data step as the counting, but it would not have been necessary.
Glad we got you working,
Jim
... View more