I'm sorry Susan.
The syntax you posted is indeed correct, and will work as expected.
Scott, the use of the variable _N_, is a common optimization technique which I believe firstly appeared by the hand of the great Paul Dorfman.
_N_ is not used by SAS for counting rows, the row number is just passed to this automatic variable at the begin of each datastep loop. It's just meant to be used inside each loop, of course, if needed, which is not the case. So, if your not interested about its value, there's nothing wrong about changing it's value, and you get a perfectly good temporary variable, which no extra memory and that does not need to be dropped at the end of the datastep. Same goes for other automatic variable, like _ERROR_ and _IORC_.
But this would not be the subject here, so returning to Susan's question, Scott's example is right, and will do what is expected.
Cheers from Portugal.
Daniel Santos @
www.cgd.pt