In SAS, the automatic variable _N_ represents the number of times the DATA step has iterated. It starts at 1 and increments by 1 each time the DATA step loops back to the top. This variable can be used within the DATA step to monitor the iteration count but is not written to the output data set. The other options, A, C, and D, are not automatically created variables that track iterations in the DATA step.
References:
SAS documentation on automatic variables.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit